Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Compressing Images before Upload

Reply
Thread Tools

Compressing Images before Upload

 
 
news
Guest
Posts: n/a
 
      06-21-2005
Does anyone know how I can compress images from an asp.net app on the client
before they are sent to the server. I can compress them once they are on the
server fine with GDI+ functions etc but when I try any code to not have the
whole image sent to the server first it won't work and I can see the image
is sent. The reason I want to do this is the web based app will always be
using smaller sized pictures and the camera is creating lareg pictures
locally of over a meg (don't want to later camera settings) and I just want
to compress them with GDI+ and then send so that it can be done quickly. At
the moment I have to send the whole file and then compress which takes too
long. I would ideally like to have some solution from asp.net so that no
external client software needs to be used/written (may have to bit the
bullet on this ?)

I'm not really up to speed in this area so any help or suggestions would be
gratefully apprectiated..

Regards


Gavin Bryan


 
Reply With Quote
 
 
 
 
bradley
Guest
Posts: n/a
 
      06-21-2005
There is no HTML or JavaScript feature to compress images or write to the
local file system. Therefore, the solution would need to involve a client
side component like an ActiveX control or Java applet. What you need is a
webcam hosting component to run in the browser?

"news" <> wrote in message
news:ReQte.3737$.. .
> Does anyone know how I can compress images from an asp.net app on the

client
> before they are sent to the server. I can compress them once they are on

the
> server fine with GDI+ functions etc but when I try any code to not have

the
> whole image sent to the server first it won't work and I can see the image
> is sent. The reason I want to do this is the web based app will always be
> using smaller sized pictures and the camera is creating lareg pictures
> locally of over a meg (don't want to later camera settings) and I just

want
> to compress them with GDI+ and then send so that it can be done quickly.

At
> the moment I have to send the whole file and then compress which takes too
> long. I would ideally like to have some solution from asp.net so that no
> external client software needs to be used/written (may have to bit the
> bullet on this ?)
>
> I'm not really up to speed in this area so any help or suggestions would

be
> gratefully apprectiated..
>
> Regards
>
>
> Gavin Bryan
>
>



 
Reply With Quote
 
 
 
 
news
Guest
Posts: n/a
 
      06-21-2005
Thanks for the reply Bradley

Yes I think I may need to look at an active-x or java control. It is for a
content managed web site for cars and they will be uploading pcitures from a
digital camera to their PC and my sofware then attaches the images that they
select to the car record that they set-up and I want it to compress and
re-size automatically and then send to the server. It will be rolled out to
different sites and different cameras are going to have different images
sizes and most will be too large to send to the server and then compress. I
want to try and have everything driven from the site and be generic so I
think it will need to look at an active-x control or java app.

Thanks


"bradley" <> wrote in message
news:...
> There is no HTML or JavaScript feature to compress images or write to the
> local file system. Therefore, the solution would need to involve a client
> side component like an ActiveX control or Java applet. What you need is a
> webcam hosting component to run in the browser?
>
> "news" <> wrote in message
> news:ReQte.3737$.. .
>> Does anyone know how I can compress images from an asp.net app on the

> client
>> before they are sent to the server. I can compress them once they are on

> the
>> server fine with GDI+ functions etc but when I try any code to not have

> the
>> whole image sent to the server first it won't work and I can see the
>> image
>> is sent. The reason I want to do this is the web based app will always be
>> using smaller sized pictures and the camera is creating lareg pictures
>> locally of over a meg (don't want to later camera settings) and I just

> want
>> to compress them with GDI+ and then send so that it can be done quickly.

> At
>> the moment I have to send the whole file and then compress which takes
>> too
>> long. I would ideally like to have some solution from asp.net so that no
>> external client software needs to be used/written (may have to bit the
>> bullet on this ?)
>>
>> I'm not really up to speed in this area so any help or suggestions would

> be
>> gratefully apprectiated..
>>
>> Regards
>>
>>
>> Gavin Bryan
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressing and spanning files on upload =?Utf-8?B?U2hlcg==?= ASP .Net 2 12-28-2005 02:36 PM
compressing big files balado Firefox 2 05-16-2005 08:00 AM
Compressing images... loss? Jeff Digital Photography 18 07-27-2004 12:40 AM
SocketPro -- A framework implemented on batching/queue, asynchrony and parallel computaion with online compressing Yuancai \(Charlie\) Ye ASP .Net 0 06-07-2004 02:16 PM
compressing the trafic between two routers Khosrow Cisco 0 08-10-2003 03:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57