469,646 Members | 1,208 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

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

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
Nov 19 '05 #1
13 1191
DavidS wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #2
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

"Curt_C [MVP]" wrote:
DavidS wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Nov 19 '05 #3
DavidS wrote:
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).
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #4
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.Image Format.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...
"Curt_C [MVP]" wrote:
DavidS wrote:
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).
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Nov 19 '05 #5
DavidS wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #6
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?

"Curt_C [MVP]" wrote:
DavidS wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Nov 19 '05 #7
Basically, any image >= 226KB fails. Any suggestions?

"DavidS" wrote:
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?

"Curt_C [MVP]" wrote:
DavidS wrote:
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.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Nov 19 '05 #8
Have you tried viewing this from another computer?
Also another browser? (like FireFox)

"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:A1**********************************@microsof t.com...
Basically, any image >= 226KB fails. Any suggestions?

"DavidS" wrote:
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?

"Curt_C [MVP]" wrote:
> DavidS wrote:
> > 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.
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>

Nov 19 '05 #9
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!

"Grant Merwitz" wrote:
Have you tried viewing this from another computer?
Also another browser? (like FireFox)

"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:A1**********************************@microsof t.com...
Basically, any image >= 226KB fails. Any suggestions?

"DavidS" wrote:
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?

"Curt_C [MVP]" wrote:

> DavidS wrote:
> > 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.
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>


Nov 19 '05 #10
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?


"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
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!

"Grant Merwitz" wrote:
Have you tried viewing this from another computer?
Also another browser? (like FireFox)

"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:A1**********************************@microsof t.com...
> Basically, any image >= 226KB fails. Any suggestions?
>
> "DavidS" wrote:
>
>> 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?
>>
>> "Curt_C [MVP]" wrote:
>>
>> > DavidS wrote:
>> > > 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.
>> >
>> > --
>> > Curt Christianson
>> > site: http://www.darkfalz.com
>> > blog: http://blog.darkfalz.com
>> >




Nov 19 '05 #11
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?

"Grant Merwitz" wrote:
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?


"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
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!

"Grant Merwitz" wrote:
Have you tried viewing this from another computer?
Also another browser? (like FireFox)

"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:A1**********************************@microsof t.com...
> Basically, any image >= 226KB fails. Any suggestions?
>
> "DavidS" wrote:
>
>> 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?
>>
>> "Curt_C [MVP]" wrote:
>>
>> > DavidS wrote:
>> > > 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.
>> >
>> > --
>> > Curt Christianson
>> > site: http://www.darkfalz.com
>> > blog: http://blog.darkfalz.com
>> >


Nov 19 '05 #12
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.

"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
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?

"Grant Merwitz" wrote:
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?


"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
> 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!
>
> "Grant Merwitz" wrote:
>
>> Have you tried viewing this from another computer?
>> Also another browser? (like FireFox)
>>
>> "DavidS" <Da****@discussions.microsoft.com> wrote in message
>> news:A1**********************************@microsof t.com...
>> > Basically, any image >= 226KB fails. Any suggestions?
>> >
>> > "DavidS" wrote:
>> >
>> >> 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?
>> >>
>> >> "Curt_C [MVP]" wrote:
>> >>
>> >> > DavidS wrote:
>> >> > > 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.
>> >> >
>> >> > --
>> >> > Curt Christianson
>> >> > site: http://www.darkfalz.com
>> >> > blog: http://blog.darkfalz.com
>> >> >
>>
>>
>>


Nov 19 '05 #13
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?

"Grant Merwitz" wrote:
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.

"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
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?

"Grant Merwitz" wrote:
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?


"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
> 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!
>
> "Grant Merwitz" wrote:
>
>> Have you tried viewing this from another computer?
>> Also another browser? (like FireFox)
>>
>> "DavidS" <Da****@discussions.microsoft.com> wrote in message
>> news:A1**********************************@microsof t.com...
>> > Basically, any image >= 226KB fails. Any suggestions?
>> >
>> > "DavidS" wrote:
>> >
>> >> 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?
>> >>
>> >> "Curt_C [MVP]" wrote:
>> >>
>> >> > DavidS wrote:
>> >> > > 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.
>> >> >
>> >> > --
>> >> > Curt Christianson
>> >> > site: http://www.darkfalz.com
>> >> > blog: http://blog.darkfalz.com
>> >> >
>>
>>
>>


Nov 19 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by John McClamrock | last post: by
2 posts views Thread by Leon | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.