473,378 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Image Questions...

Hi
I would like to thank Jon about my previous post.

I have another question about image that I transform on fly.

I use a routine like this :
Dim bmp As Bitmap = Drawing.Image.FromFile(OriginalFile)
Dim g As Graphics = Graphics.FromImage(bmp)
g.DrawString("s", New Font("Arial", 12,
FontStyle.Italic), _
SystemBrushes.WindowText, New PointF(100, 100))
g.ResetTransform()
bmp.Save(Response.OutputStream, ImageFormat.Jpeg)
g.Dispose()
bmp.Dispose()

I would like to display the image into a Cell tab.
My idea was to add a Image Control in the tab cell
and use the ImageUrl property.
But when I try this :
bmp.Save("FileName", ImageFormat.Jpeg)
I get an GDI error (ExternalException (0x80004005) )

Any Help ?

Stan

Nov 18 '05 #1
1 1000
Stan

Do you know what the exception is actually getting caused by? It could be a
number of things. Quite possibly its just that the ASPNET user doesn't have
security privileges to create images on the given directory.

Janaka
"Stan Sainte-Rose" <st**@cyber972.com> wrote in message
news:ei*************@TK2MSFTNGP12.phx.gbl...
Hi
I would like to thank Jon about my previous post.

I have another question about image that I transform on fly.

I use a routine like this :
Dim bmp As Bitmap =
Drawing.Image.FromFile(OriginalFile)
Dim g As Graphics = Graphics.FromImage(bmp)
g.DrawString("s", New Font("Arial", 12,
FontStyle.Italic), _
SystemBrushes.WindowText, New PointF(100, 100))
g.ResetTransform()
bmp.Save(Response.OutputStream, ImageFormat.Jpeg)
g.Dispose()
bmp.Dispose()

I would like to display the image into a Cell tab.
My idea was to add a Image Control in the tab cell
and use the ImageUrl property.
But when I try this :
bmp.Save("FileName", ImageFormat.Jpeg)
I get an GDI error (ExternalException (0x80004005) )

Any Help ?

Stan

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Doc | last post by:
I've read in a couple of different places including the archives of this forum that html doesn't allow you to precisely dictate the position of an image, but I found this command (again in the...
3
by: Zahid Khan | last post by:
I need little help in my situation. I am reading a graphic file (jpg) from disk and then resizing it and save resized image. What happens, it gets blured, I want to retain same quality so that...
4
by: Christina Androne | last post by:
Hi I want to allow the user to drow some locators on an image and connect the locators with lines. So I tried to put the following code in the onmousedown enevt of the picture: Graphics...
2
by: VicVic | last post by:
Hello Experts, I have 3 questions about Image and Bitmap, and hope you can help me. 1. Could any one tell me the difference between Image and Bitmap? I did take a look of the 2 classes, but...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
7
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. ...
2
by: sachaburnett | last post by:
Hi everyone! I'm new to Javascript and am finding so much useful information on this group, so thanks to you all! I have a question about preloading images for onmouseover/out effects and...
5
by: massimoal | last post by:
Hi all, I need to convert a tif image, grabbed by a pixelink industrial camera, to a text file (1024x768 elements) but I really don't know how. Surfing the net I found that there are a lot of...
1
by: sklett | last post by:
I need to bang out a quick application to extract CCITT compressed TIF images from a ton of PDFs. I've used PDFSharp in the past to work with PDFs but ti doesn't have support for the PDF...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.