Get file from HTTP POST (upload image)

I would like to integrate flash component to my APEX 4.1 website. I need it because I want to resize image and transform image before upload on client side, upload multiple files etc..
But I don't know how to read image binary data from POST method.
When I hit "Start upload" button on plupload component it makes some transformations and creates POST method like this:
Content-Disposition: form-data; name="name"
Content-Disposition: form-data; name="chunks"
Content-Disposition: form-data; name="chunk" 0
Content-Disposition: form-data; name="file"; filename="centerd.jpg"
Content-Type: image/jpeg
image content
   now I would like to read content of this HTTP POST and read sended image and store it to DB.
Question is... how can I read file sended with HTTP POST in APEX pl/sql process or pl/sql procedure?
Thank you...
Edited by: cardel on Apr 14, 2012 11:17 PM


here are my two cents ...
this will be a bit difficult. When you use the standard APEX File upload it is not PL/SQL handling the POST request. The request is handled by the webserver - depending on the variant you are using it is either mod_plsql, the C code of the Embedded Gateway or the APEX Listener. The webserver is also doint the insert into APEX' file repository. So I see two options:
It might be possible to configure your plugin (don't know about it) the behave the same as a standard browser upload. Then for APEX there would be no difference - mod_plsql should handle the files accordingly.
If you want to handle the POST request yourself, as said, you can't do this in PL/SQL. It would be possible to write a Java servlet doing this and deploy that servlet on the same container as the APEX Listener (when using Apache with mod_plsql you would need an additional Java server for that) ....
Hope this helps ...
Best regards

Access XML files from HTTP

Hi, I need access XML file from HTTP. Server need parameters in the URL to generate XML files. For example, http://fileserver/xmlfile?orderid=123&custid=321. I created a XML Data Server in ODI 11g. The JDBC Url should be jdbc:snps:xml?f=<filename&g

Subsequent play of WAV files from HTTP

Hi, I have to subsequently play many WAV files from HTTP in a nokia series 60 emulator. Everything is ok for the first two files, but at the third I catch an exception: " exceeded the configured maximum number of connections"

How can I safely and securely get files from my mac.

I want something like LogMeIn Pro but for free. ther is a free version it DOES support mac BUT not gettong files. I want to be able to securely get files from my mac from school or anywhere whitout paying!! I HAVE had a look on google, no help.Try ve

Uploading big files via http post to XDB table

Hello, I ve created a web form for to upload files as blobs to the database using XML DB, DBPS_EPG package and preconfigured DAD. The issue is that small files (~10kb) are being uploaded ok, but file which is 100K during http post returns connection

Reinstall system to solve beachball issue, then get files from time machine backup.. will the bring beachball back

Hi, My iMac has a beachball issue to the extent that now it not even starts up anymore, I don't even get to the desktop screen. I plan to reinstall the system from with the CD I got when I purchased the iMac 2 years ago, then update the operating sys

How do I get files from an App that won't send via Email??

Hey Apple Community, this is my first post. I got an App from the App Store called "Recorder Pro" from a developer called "David Bajada". I'm using this App for recording my commentaries for my YouTube channel from my iPad.  The proble

Getting files from old external drive to a new one

I have a dying Acom ac powered 80gig external drive on my eMac and a powerbook that is running out of drive space. The Acom has one USB and two firewire outputs, one firewire is hooked up to the eMac . The Acom is all itunes music (none from the Appl

Getting files from damaged macbook pro

Is it possible to  retrieve files from the hard drive of a Macbook Pro that has been water damaged if the the drive itself is not damaged?Yes, just get a external enclosure for the external HD and put the drive into that.  Just drag all of your files

Need advice (help!) Can I get files from Time Machine to a PC

My Mac book's HD I think is dead. I have an external HD with Time Machine back ups on it. I really NEED to get my address book contacts off and onto my back up PC, for right now. Is there even a way to do that?? and while Im at it what about iTunes l

Setting up Brand New iPad 2 - iTunes Sharing and Getting Files from old iTunes Account

Greetings.  I recently purchased an iPad 2 (convert after 20 years of PC use) and have been waiting to set it up until I knew the proper way to proceed.  I have multiple questions and am hoping those of you with more Apple experience can help out a c

Drag image file from portfolio pdf into image field in reader

I'm new to the Adobe world and this is my first project. I'm not sure if this is even possible, but here's what I'm trying to do... One document is a PDF portfolio with 200 images (jpg or tif). Each image in the portfolio will have a description. The

Getting file from ftp server problem.

Anyone can tell me what's wrong with my code. I try to get Test.txt from my ftp server with this coding : public class FTPClient{ public static final void main(String[] args) throws Exception {   try { URL url = new URL("ftp://user:[email protected]:21

Get a Muse file from Adobe Catalyst?

So I spent many hours building my first site on Muse and I uploaded it to Catalyst. Unfortunatly my harddrive crashed and I lost Muse file I was using. Is there anyway to get it off of BC?Hello, When a website is published to Business Catalyst via Mu

How can you get your files from outlook onto your ipad2 and keep it in the files?, how can you get your files from outlook onto your ipad2 and keep it in the files?

How can you get files from your outlook folder from the ipad2 and keep it there for future reference?It's unclear what you are asking outlook is a mail, appointment, tasks and contacts Programs outlook have no direct contact with filesRead other 2 an

Why won't Elements 11 accept NEF files from my D810?

I just purchased a D810 and cannot upload NEF files to Elements 11. I have a D7000 that uploads NEF with no problems. I get through the loader okay, but when it attempts to load to Organizer I get an error message stating "Nothing was imported. The f

How can you transfer files from an iMac with a bad logic board?

This is in reference to my "Nothing but a blue screen at startup!" post. He took his iMac to an Apple authorized repair shop and he was told that the logic board was shot. He has decided to get a new iMac but he's wondering about all the photos

Overview of uploaded images

Hi there, Is there a way to get a list of all uploaded images via items (by page group / page) ? (Not only the shared) My customer is asking for an thumbnail preview page, if I can selected the images from some view I'm able to construct such a page.

How do I create an AppleDouble "dot-underscore" file from the command line?

We're going through a process of migrating NetWare shares to Windows shares (without File Services for Macintosh) where I work. One concern is that the NetWare shares are shared as AFP volumes to the Macs. All the finder info and metadata for the fil

Cannot copy files from mac via smb

I have a very strange effect since I went from 10.6 to 10.7. (I am on 10.7.2 now). My Windows 7 PC can no longer copy files via SMB from the Mac to Windows. I first thought this has to do with McAfee Endpoint Encryption, since the error message is "C