• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the MIME Type of a BLOB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the MIME Type of a BLOB


  • Subject: Re: Getting the MIME Type of a BLOB
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 19 Feb 2009 07:48:29 -0500

if you use wonder, ERAttachment framework provides ERMimeManager (ERMimeTypeManaegr maybe? i don't recall) that provides all kinds of utility methods for retrieving mime types, UTI 's, file extensions, etc based on any of the others (i.e. mime type for extension, uti for mime type, etc).

ms

On Feb 19, 2009, at 3:14 AM, Ziyaaf Gaffoor wrote:

Hi ,

I used the WOFileUpload to upload files. The files may be in any format such as ".pdf, .txt, .png" etc.
I have no problem in uploading , when i download i want to get the Mime type of the file and show the preview of that file to the user.
So i tried using the "mimeType" attribute in the "WOFileUpload". but most of the time it returns "application/octet-stream" as mime type, even for image files .
Is there any method to get the actual Mime type such as "image/ gif" , "text/plain" ... etc.


FYI  , DB is mysql , Data type i used is BLOB .

--

Thanks Regards,

Ziyaaf
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Getting the MIME Type of a BLOB (From: Ziyaaf Gaffoor <email@hidden>)

  • Prev by Date: Re: AjaxSubmitButton/AjaxUpdateContainer -> Index out of bounds after delete
  • Next by Date: Re: [MEETING] WO-NOVA meeting Tuesday 2/17
  • Previous by thread: Getting the MIME Type of a BLOB
  • Next by thread: AJAX Requests and WOCookie
  • Index(es):
    • Date
    • Thread