Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7671141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:58:57+00:00 2026-05-31T15:58:57+00:00

I am using the web browser control to generate screenshots of an intranet application

  • 0

I am using the web browser control to generate screenshots of an intranet application developed in ASP.NET.

The screenshot is generated, compressed and then stored as a BLOB in the database. When I developed this facility I investigated the best way of compressing the image (to the lowest byte size), however the images still seem to be too big as the database table is growing larger than I hoped. I am using the TIFF format, but I am now thinking that this may not be the best as it is used by photographers (who I assume require good quality photographs). Here is the code to compress the image (before it is stored as a BLOB):

Public Function compressImage() As String
        Try
            Dim jgpEncoder As ImageCodecInfo = GetEncoder(ImageFormat.Tiff)
            'Dim myEncoder As System.Drawing.Imaging.Encoder = System.Drawing.Imaging.Encoder.Quality
            Dim myEncoderParameters As New EncoderParameters(1)
            Dim myEncoderParameter As New EncoderParameter(System.Drawing.Imaging.Encoder.Compression, CLng(EncoderValue.CompressionCCITT3))
            myEncoderParameters.Param(0) = myEncoderParameter


            Dim ms As MemoryStream = New MemoryStream()
            'bmp1.Save(ms, ImageFormat.Jpeg)
            ConvertedImage.Save(ms, ImageFormat.Tiff)
            Dim bmpBytes() As Byte
            bmpBytes = ms.ToArray()
            'ConvertedImage.Dispose()
            ms.Close()
            ms = Nothing

        Catch ex As Exception
            MsgBox(ex.ToString())
        End Try
    End Function

Private Function GetEncoder(ByVal format As ImageFormat) As ImageCodecInfo

        Dim codecs As ImageCodecInfo() = ImageCodecInfo.GetImageDecoders()

        Dim codec As ImageCodecInfo
        For Each codec In codecs
            If codec.FormatID = format.Guid Then
                Return codec
            End If
        Next codec
        Return Nothing

    End Function

Is there a file format/compression algorithm I should use to try and make the file as small as possible without sacrifycing quality too much

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:58:58+00:00Added an answer on May 31, 2026 at 3:58 pm

    Jpg or Png should get you smaller than Tiff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the web browser control in a console application, it is created
I can authenticate Facebook for desktop application using web browser control. But I want
i am using Microsoft web browser control in an MFC Application. It displays a
I'm using a WebBrowser control in my Visual C# (.net 2.0) application. Now I'd
I have a Webbrowser control that I am using to generate thumbnails of web
Using Web Browser control or http request in C#, when a website creates a
is any light weight browser control available for c# application other than builtin web
I am using the web browser control from shdocvw.dll to build an html and
This question: Using Proxy with web browser control Told me to use InternetSetOption. How
Just like Microsoft Internet Explorer, there is web browser control functionality: Using MFC to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.