Click here to Skip to main content
15,929,812 members
Home / Discussions / C#
   

C#

 
GeneralFirst Visible Column -- RichTextBox Pin
Jay Shankar29-Sep-04 23:26
Jay Shankar29-Sep-04 23:26 
GeneralRe: First Visible Column -- RichTextBox Pin
Dave Kreskowiak30-Sep-04 5:14
mveDave Kreskowiak30-Sep-04 5:14 
GeneralRe: First Visible Column -- RichTextBox Pin
Jay Shankar30-Sep-04 14:27
Jay Shankar30-Sep-04 14:27 
GeneralRe: First Visible Column -- RichTextBox Pin
Dave Kreskowiak30-Sep-04 18:27
mveDave Kreskowiak30-Sep-04 18:27 
GeneralRe: First Visible Column -- RichTextBox Pin
Jay Shankar1-Oct-04 15:21
Jay Shankar1-Oct-04 15:21 
GeneralRe: First Visible Column -- RichTextBox Pin
Dave Kreskowiak1-Oct-04 16:24
mveDave Kreskowiak1-Oct-04 16:24 
QuestionHow to "Upload" last modified files/folders in Win-FTP-svr and Web-FTP-svr Pin
sharad_sharma_2k29-Sep-04 22:20
sharad_sharma_2k29-Sep-04 22:20 
GeneralGDI Issue Pin
Gavin Jeffrey29-Sep-04 21:28
Gavin Jeffrey29-Sep-04 21:28 
Hi,

I have a strange problem (also difficult to explain but here goes) - basically I have a program that scans a email account (which receives faxes as tiff images as attatchments) when the program finds a new email it gets the tif saves it to a mySql database and also saves each individual image to the database. But sometimes one of the seperate images is corrupt i.e. I can see it in the database (blob editor - image) but i cant work with it at all - I can save it using mySql front but if i try and open the image it says drawing failed. If I try and use it in my code -

byte[] MyData = (byte[])dataread["fileData"];
System.IO.MemoryStream mem = new System.IO.MemoryStream(MyData);
mem.Flush();
System.Drawing.Image i = System.Drawing.Image.FromStream(mem);
i.Save(mem,System.Drawing.Imaging.ImageFormat.Gif);

it will give a gdi exception(a generic exception has occured) when i try create a image from the memoryStream
another strange thing is that whenever I get an image like this the length of the byte array is always 74240.
Also when I view the image in the tiff I can see no problems with it.

Any ideas/help would be greatly appreciated. Thanks.

Gavirj
GeneralRe: GDI Issue Pin
Gavin Jeffrey30-Sep-04 20:24
Gavin Jeffrey30-Sep-04 20:24 
GeneralBug in .NET 1.1 SP1 Pin
Pain_Elemental29-Sep-04 20:49
Pain_Elemental29-Sep-04 20:49 
GeneralRe: Bug in .NET 1.1 SP1 Pin
Runciter16-Oct-04 13:07
Runciter16-Oct-04 13:07 
GeneralPCSC using C# Pin
Member 129565029-Sep-04 17:01
Member 129565029-Sep-04 17:01 
GeneralA metronome app in C# Pin
NietzscheDisciple29-Sep-04 12:37
NietzscheDisciple29-Sep-04 12:37 
GeneralRe: A metronome app in C# Pin
Christian Graus29-Sep-04 13:27
protectorChristian Graus29-Sep-04 13:27 
GeneralRe: A metronome app in C# Pin
NietzscheDisciple29-Sep-04 13:38
NietzscheDisciple29-Sep-04 13:38 
GeneralRe: A metronome app in C# Pin
Stefan Troschuetz29-Sep-04 22:05
Stefan Troschuetz29-Sep-04 22:05 
Generallooking for .Net class lib to edit mp3 and ogg tags Pin
spazzman29-Sep-04 12:37
spazzman29-Sep-04 12:37 
GeneralRe: looking for .Net class lib to edit mp3 and ogg tags Pin
Christian Graus29-Sep-04 13:28
protectorChristian Graus29-Sep-04 13:28 
QuestionA timer problem? Pin
cemlouis29-Sep-04 11:14
cemlouis29-Sep-04 11:14 
AnswerRe: A timer problem? Pin
smithriver29-Sep-04 11:47
smithriver29-Sep-04 11:47 
GeneralRe: A timer problem? Pin
cemlouis29-Sep-04 14:12
cemlouis29-Sep-04 14:12 
GeneralRe: A timer problem? Pin
smithriver30-Sep-04 5:26
smithriver30-Sep-04 5:26 
GeneralRe: A timer problem? Pin
smithriver11-Oct-04 6:24
smithriver11-Oct-04 6:24 
GeneralEmbed and play an AVI file Pin
smithriver29-Sep-04 11:12
smithriver29-Sep-04 11:12 
GeneralGetting CPU Usage of a particular process Pin
filburt129-Sep-04 10:46
filburt129-Sep-04 10:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.