2nd post - 1st 8/2/05 (no reply). Any help here?

G

Guest

I have HTML web page with <asp:Image id=img_L runat=server ImageAlign=Top
Visible=True Width=y Height=x></asp:Image>. For some images, less than 128K
I can view image. Other image files > 128K, image is not viewable - comes up
with X in picture box. Is there size restriction. How can I remove this -
or how can I show images > 128K in web page.

NOTE: x & y in asp:Image spec are distinct values - say 128 x 128 or 64 x 64
image sizes
 
C

Curt_C [MVP]

DavidS said:
I have HTML web page with <asp:Image id=img_L runat=server ImageAlign=Top
Visible=True Width=y Height=x></asp:Image>. For some images, less than 128K
I can view image. Other image files > 128K, image is not viewable - comes up
with X in picture box. Is there size restriction. How can I remove this -
or how can I show images > 128K in web page.

NOTE: x & y in asp:Image spec are distinct values - say 128 x 128 or 64 x 64
image sizes

try to use a simple <img src=...> tag for that image once, to ensure its
not the image.
 
G

Guest

Not sure I follow you - not sure what <img src=> will do for me. I'm
basically using <asp:Image ...> </asp:Image> to dynamically control the image
viewed in the web page. The images exists - it appears to be size issue -
but I need to confirm. I have many images that are viewed - others whose
size is > 128K just are viewable with red x. If I review the image file
using Windows Explorer (image file > 128K - it's viewable - but for some
reason, the <asp:Image> control will not properly preview these images.

Any other suggestion or has anyone encountered this problem
 
C

Curt_C [MVP]

DavidS said:
Not sure I follow you - not sure what <img src=> will do for me. I'm
basically using <asp:Image ...> </asp:Image> to dynamically control the image
viewed in the web page. The images exists - it appears to be size issue -
but I need to confirm. I have many images that are viewed - others whose
size is > 128K just are viewable with red x. If I review the image file
using Windows Explorer (image file > 128K - it's viewable - but for some
reason, the <asp:Image> control will not properly preview these images.


the 128k should not be an issue, unless somehow you've tweaked some
settings. The IMG test was to see if it is a problem with the <asp: tag
or if it's an image issue. Just try one of the IMG tag tests once, in
that same page, just to confirm this. It will tell us if we need to look
outside the page (web.config settings perhaps).
 
G

Guest

I've tried the following <img src="picture.jpg"></img> in HTML - and I get
red x for image whose size is 226K. If I use <asp:Image Imageurl=> I get
same issue - red x for this image size.

When I do the following in ASP.NET code -
Dim BitObj As Bitmap = New Bitmap("\Groups\Public\LicensingDatabase\Photos\"
& Trim(txt_SS.Text) & ".jpg" )
BitObj.Save( Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg )
The image using this technique is visible on web page - but I need to use
<asp:Image> control instead - I need the image to preview with other web
controls etc...
 
C

Curt_C [MVP]

DavidS said:
I've tried the following <img src="picture.jpg"></img> in HTML - and I get
red x for image whose size is 226K. If I use <asp:Image Imageurl=> I get
same issue - red x for this image size.

Ok...this tells us though that it's nothing to do with the <asp:Image
control, its the image or the site settings.
 
G

Guest

So what should I do regarding the site settings - what would I be looking to
change. Basically, the image is ok - since I can preview other ways. Any
suggestion here - to me it seems a size issue using the control - images <
128 always preview with control - other won't - but there visible using
source code I outlined in other reply.

Again, if it's not the control nor image - where do I change site settings -
what fields of machine.config or what config file & attributes?
 
G

Grant Merwitz

Have you tried viewing this from another computer?
Also another browser? (like FireFox)
 
G

Guest

Using Windows 2000 and Windows XP Professional - only browser I have is IE
6.0 - and only browser I'd like to use. The image is viewable using Windows
Explorer always. If I attempt to open using IE 6.0 via File | Open... |
Browse - the image files with sizes >= 226KB are viewable, but they default
to Photoeditor in this way.

Again, web page that I'm developing can preview any image of size < 226KB
without problems using either <asp:Image> or <Img Src=> etc...

Any other suggestion? Again, curt suggested maybe it could be setup - I was
looking @ IIS to see WHERE an issue with the image size being >= 226KB - but
I didn't find anything.

Again - all help is greatly appreciated here!
 
G

Grant Merwitz

What i was trying to determine, is if it was a problem with your IE.
Maybe a toolbar installed, a setting limiting what images can be displayed
(i've looked and can't find any), or some internet optimiser thats been
installed.

I guess you could just do a Google image search, and find another site with
an image bigger than 226KB, and see if that is displaying.
Otherwise, if you just create and HTML file, with a <Img src=> pointing to
one of your images < 226KB, does it still not display?

For example, the html file attached just points to an image i found on
google (this is not a picture of me :))
Does that work?
 
G

Guest

I've taken your advice and tried another image - image size was 1935KB - and
it opened properly using <asp:Image>.

Basically, I have some images that won't load properly. Since I didn't
create them - someone created these - and I suspect now the manner in which
they created them is the issue. Individuals using digital camera are for the
most part computer illiterate - I noticed that when I right click on the "Red
X - means the image isn't uploaded" - basically, it's showing Type - Not
Available, and Size - Not Available. What would cause this. What should I
look for with the way they created these images - again, what's puzzling is
they still load with Photo-Editor but not web page loads. Why the difference?
 
G

Grant Merwitz

sounds like your getting somewhere.

What format are they?

Maybe its a format that IE doesn't support, but the photo editor can open.
Or maybe they were corrupted when they were uploaded.
 
G

Guest

I might have a work around. I can do the following with bad images -

Dim BitObj As Bitmap = New Bitmap("\\...\...\Photos\" & "xxx-xx-xxxx" &
".jpg" )
BitObj.Save( "\\...\...\Photos\xxx-xx-xxxx_clean.jpg",
System.Drawing.Imaging.ImageFormat.Jpeg ) - IF I CAN DETECT A BAD IMAGE!

Only question is - I'd like to do this when I find a red x - image that
can't be uploaded - is there any way to error trap an image to see if it can
be viewed in IE - that is, if I could do this - then I could use feature
above to give me clean view of reformatted image - I've verified that the
..Save(...) feature will work on these bad images files - and gives a clean
format that can be viewed.

Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top