I am uploading a decently large image (3-4mb) via CFFILE.
%26lt;cffile action=''upload''
filefield=''file''
destination=''#ExpandPath('\')#gallery\images''
nameconflict=''makeunique''/%26gt;
Using the CF Function
ImageRead, I am reading that file back into memory to do a
ImageScaleToFit to create a thumbnail.
The problem is,
ImageRead is SO SLOW! Is there anyway to read the image
directly from the fileField of the upload instead of writing it to
disk and then re-reading it back into memory?CF8: CFIMAGE and CFFILE upload
TomSchober wrote:
%26gt; Is there anyway to read the
%26gt; image directly from the fileField of the upload instead
of writing it to disk
%26gt; and then re-reading it back into memory?
%26gt;
CF = server
%26lt;input type='file'%26gt; = client
no, there is no way to do what you want with just CF.
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
CF8: CFIMAGE and CFFILE upload
It seems a waste to have the image data in memory from the
http request, have to write it to disk, and immediately read it
back into memory. It's a major bottleneck. Any other suggestions
outside of CF?
it's not a waste, it is just how things work.
cf has absolutely no idea about what's going on the client's
machine.
are you sure it is imageREad that is ''slow''? or maybe it just
takes a
while for you to upload your file?
maybe some java applets or activeX controls can do it
directly on client
side.... don't know of any though...
---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment