Uploading/Downloading content in C++

Hello All,
I need to download and upload indesign files from within plug-in. Their size can vary from about 3-15 Mb. I need to know what options do I have to go ahead with the design. I'm familiar with LibCurl framework. I need to know if there's any native indesign supporting API's to perform my task. 
Also it'd be a plus if this could be done in a multithreaded way i.e not freezing indesign while the downloading takes place.
Thanks!

Thanks for the wonderful suggestions.
Have you ever worked with any of these methods in Indesign. Is there any list like pros/cons for these? It'd be great if you point me to some samples for the native thread method on Mac/Windows because this is a cross platfrom plug-in and I need to make a decision keeping that in mind.
Thanks again!

Similar Messages

  • Unable to upload downloaded content

    hi, im having a small problem with pc suite and my nokia 5200. Basically i cant upload music files to my phone which i have downloaded legally (unable to support file format, appears on the screen. It will upload music which i have ripped to my computer from genuine cds. Can anyone help me here, is it a copyright issue? cheers
    ps; im using version 6.84

    YOu don't give very specific information so I have to do some guess work, which is a pity...
    There are numerous file formats of music that the Nokia phones support and some support this format, some other formats, depending on the connected phone (Nokia PC Suite supports more than 250 Nokia phone models), the suggested conversion fromat can be AAC or eAAC+ and now you donät tell to which format Nokia Music Manager converts.
    You can move via Explorer the mp3 files directly to memory card if you select data transfer mode in connecting (not Nokia/PC Suite mode).
    So to really help, more accurate info needed.

  • Upload / Download document to KM Content Server from WebDynpro Application

    I have a requirement where I need to upload / download document into / from KM Content Server from my WebDynpro Application.
    Is it technically possible and if Yes, can I get any Sample code for this.

    Hi Tahzeeb,
    first of all i would point you to the JavaDocs for KMC API.
    https://media.sdn.sap.com/javadocs/NW04/SPS15/km/index.html
    And here is a small example of reading and storing KM resources.
    For reading:
         * Returns a resource as an InputStream from the KM repository
         * at the given path. The IUser is needed for authorization.
         * @param user      IUser for checking authorisation.
         * @param resPath   Path to the KM resource.
         * @return          Requested resource as a stream.
        private InputStream getKmResource(final IUser user, final String resPath)
            throws ResourceAccessException {
            try {
                final IResourceFactory factory = ResourceFactory.getInstance();
                final RID rid = RID.getRID(resPath);
                final IResource kmResource =
                    factory.getResource(
                        rid,
                        new ResourceContext(getDeprecatedIUser(user)));
                if (kmResource == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                return kmResource.getContent().getInputStream();
            catch (WcmException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
    And for writing:
         * Stores a resource in the KM repository at the given path with the given name and mimetype.
         * Content is taken from the given inputstream.
         * @param user          IUser for checking authorisation.
         * @param resName   Name of the resource
         * @param resPath     Path to the resource
         * @param mimeType MimeType of the resource
         * @param inputStream  Resource content
         * @throws ResourceAccessException
        private void putKmResource(
            final IUser user,
            final String resName,
            final String resPath,
            final String mimeType,
            final InputStream inputStream)
            throws ResourceAccessException {
            try {
                final ResourceContext rContext = new ResourceContext(getDeprecatedIUser(user));
                final RID rid = RID.getRID(resPath);
                final ICollection kmCollection =
                    (ICollection) ResourceFactory.getInstance().getResource(rid, rContext);
                if (kmCollection == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                else {
                    IContent kmContent = new Content(inputStream, mimeType, -1);
                    IResource kmResource = kmCollection.createResource(resName, null, kmContent);
            catch (ResourceException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
            finally {
                try {
                    inputStream.close();
                catch (IOException e1) {
                    throw new ResourceAccessException("Error closing InputStream when accessing " + resPath, e1, resPath);
    Hope that helps for a start.
    Best regards,
      ok

  • Media content upload download

    Hi,
    I am quite new to the iPhone development. My requirement is to create an app which should be able to upload/download/tag a specific media content - image, video or audio to a Ruby on Rails based social networking
    There could be two solutions
    1. Standalone app - using the underlying framework APIs.
    Does the standard Foundation framework's underlying HTTP Connection object support uploading / downloading of videos/audios? I found a Ruby Cocoa framework in the library though.
    2. Can I enable my website to for iPhone so that the browser itself takes care of upload/download of the content
    Would greatly appreciate pointers on this
    Thanks in advance

    Using NSMutableURLRequest and NSURLConnection one can do POST and GET requests to a web service. These classes abstract all of the set up so simple requests are easy to do. For more complicated requests you have the ability to programatically set or adjust the HTTP header fields. NSURLConnection can be used in either synchronous or asynchronous modes. The latter allows you to make network requests without all the bother of creating and managing threads but still keeping your UI from blocking on the request.

  • How is the upload/download file content area implemented

    Hello all,
    I have read that one content area4s purpose is to allow users to store documents. How is it implemented? I mean,
    How can a user upload/download doc to a specific folder? Should this functionality be implemented by us or does
    Oracle Portal provide any mechanism for doing this?
    Thansk a lot

    Beatriz,
    You can specify privileges on the folder based on users/groups. I am not sure I understand "I need to restrict its access just only to add element-"
    Are you trying to ensure that people can upload docs, but not make any style changes ? Right now, if you can add a document
    , then you can also delete it.
    Also, I have listed a few links below that you might find helpful.
    http://portalstudio.oracle.com/servlet/page?_pageid=832&_dad=ops&_schema=OPSTUDIO
    http://www.amazon.com/exec/obidos/ASIN/0072222492/qid=1023990826/sr=8-3/ref=sr_8_3/002-0139635-0918453
    http://www.amazon.com/exec/obidos/ASIN/0130600377/qid=1023990826/sr=8-2/ref=sr_8_2/002-0139635-0918453
    hth
    HEllo again,
    I have found that one way to do that upload is through 'add element' -->file item in the content area.
    We have a group-defined structure and I need to restrict its access just only to add element--> Is it possible?If so, how?
    What are the privileges I have to set to allow a user to add elements in a content area? At this moment we have:
    * In the content area access tab : user X-->Administer
    *iN THE page's content area, acces tab-->Manage
    If this userX connects and tries to edit the content area--> add element, the item list shows no value it4s in empty. What
    else steps should I follow.
    I would thank any idea

  • Unable to upload/download large html files(71 MB) into  rooms

    Hi,
        I am unable to upload download HTML file(71 MB)into folders of collabration rooms.if it is uploaded also its getting Scripted/corrupted.
    other files are working properly.
    Is it because of large size or any other configuration settings.there is no error msg buts its getting scripted.
    Waiting for your response
    Thanks
    Amit kumar Koyal

    Hi Kerstin,
    the note also says: "This restriction is no longer valid".
    With SP19 I do run tests continously that test content up to 2GB.
    Amit: What portal version are you running? What repository implementation is the file stored in? If the file is stored in a file system, what is it's file size limitation?
    Regards,
    Michael

  • File upload, download using ADF UIX and not JSP

    I have examples for the file upload, download using JSP
    But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
    Users will select a file from their desktop
    This will be stored into the database (Any document. Word, Excel)
    When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local system

    Sure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
    The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
    public class ProgressListenerImpl implements ProgressListener {
        private int percent = 0;
        public int getPercentComplete() {
            return percent;
        public void update(long pBytesRead, long pContentLength, int pItems) {
            if (pContentLength > -1) { //content length is known;
                percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
    }So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
    ServletFileUpload upload = new ServletFileUpload();
    ProgressListenerImpl listener = new ProgressListenerImpl();
    upload.setProgressListener(listener);
    request.getSession().setAttribute("ProgressListener", listener);
    ...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
    ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
    response.getWriter().println("" + listener.getPercentComplete());
    ...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
    HTH

  • Urgent : file upload / download functionality in oracle portal page

    Hi friends
    I am new to portal development and am working on oracle portal 9i rel2 . I need to know how to put the file upload and download functionality in any page. the functionality given in oracle portal user guide is not user friendly (i.e in the content area add item of type file" ) .... i need to now is their any way to achieve the simple , one button click upload download functionality ..like we do in yahoo mails etc.
    any help will be highly appreciated.
    regards
    Dheeraj

    Well, I do not know the exact location of the document, however you can find the document to do this in modplsql User Guide ..(File Upload/Download).
    I am pasting some hint:
    e.g.
    Create an html form..code something like this:
    <html>
    <head>
    <title>test upload</title>
    </head>
    <body>
    <FORM      enctype="multipart/form-data"
    action="pls/mydad/write_info"
    method="POST">
    <p>Author's Name:<INPUT type="text" name="who">
    <p>Description:<INPUT type="text" name="description"><br>
    <p>File to upload:<INPUT type="file" name="file"><br>
    <p><INPUT type="submit">
    </FORM>
    </body>
    </html>
    Create a table
    (who varchar2(..).
    description varchar2(..),
    file varchar2(..));
    Your procedure something like this:
    procedure write_info (
    who in varchar2,
    description in varchar2,
    file in varchar2) as
    begin
    insert into myTable values (who, description, file);
    htp.htmlopen;
    htp.headopen;
    htp.title('File Uploaded');
    htp.headclose;
    htp.bodyopen;
    htp.header(1, 'Upload Status');
    htp.print('Uploaded ' || file || ' successfully');
    htp.bodyclose;
    htp.htmlclose;
    end;
    You should be able to download/access the file using the following URL format:
    http://<host>:<port>/pls/<dad>/docs/<file_name>
    Where file name is = Look for the value in the "myTable" > file.
    Do tell how you get on this.
    Thanx,
    Chetan.

  • Upload Download How To

    I have followed the Upload and Download Files in an Application How To.
    I can upload files into the application but I cannot download.
    When I click on the download link, the full URL appears in the address bar at the top of the screen, but the file does not open.
    Any ideas
    Gus

    Hi Gus,
    I had the same issues after following the upload/download document, and finally after much hunting around i followed the following:
    - You need to create the following function in the schema FLOWS_020100,
    - the function has to be written in upper case
    - and prefixed with the schema the procedure runs in (for example, when you use the function in the schema HR, please change accordingly):
    log as system
    alter session set current_schema=FLOWS_020100;
    create or replace function FLOWS_020100.wwv_flow_epg_include_mod_local(procedure_name in varchar2)return boolean
    is
    begin
    if upper(procedure_name) in ('YOUR_SCHEMA.PROCEDURE_NAME') then
    return TRUE;
    else
    return FALSE;
    end if;
    end wwv_flow_epg_include_mod_local;
    for more information on this function, follow:
    ref: showing blob content (mime type image/jpeg) in reports cloumn
    http://daust.blogspot.com/2006/04/xe-calling-stored-procedures.html
    So, the mistake i was making was creating the function without putting FLOWS_020100 before wwv_flow_epg_include_mod_local, meaning that the function was created in the schema that i found myself in when creating (System account), and not in FLOWS_020100
    It's quite late, but i hope this helps
    jed
    if you can think of a good synonym for "following", please advise...

  • Uploading/Downloading Files in Webdynpro ABAP

    Hello,
    I am trying to Upload/Download Files in Webdynpro ABAP using the following link:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
    It works fine and the file(either .doc or .txt) gets uploaded successfully. But when I download it ,it is not able to retrieve the contents.
    May be the SAP ECC system does not work with Microsoft Office 2007.
    Please help.
    Thanks.

    I guess it has problem with .doc extension but
      .txt you can read
    and also .docx and .xlsx will provide the content
    it is only this .doc and .xls which will create problem.
    e.g. .docx after downloading will give one .zip file.
    change its extension to .doc or .docx. the content will be there.
    thanks
    sarbjeet singh.

  • Upload / download BDS document buttons missing from MS Excel View dialogue

    Upload / download BDS document buttons are missing from MS Excel View dialogue window.
    This means that users cannot upload pre-built MS Excel templates into their own layout variants.
    Test systems have this function, but production box does not.  Is there an ABAP or Basis setting that is missing?

    hi,
    In this link it is mentioned on how to integrate the BDS in the SAP Application,
    http://help.sap.com/saphelp_47x200/helpdata/en/19/b6ba374da7bd4fe10000009b38f842/content.htm
    and also go through the example,
    http://help.sap.com/saphelp_47x200/helpdata/en/71/94a937a7777c38e10000009b38f842/content.htm
    Regards,
    Azaz Ali.

  • I am trying to store music for two different iPods on the same computer, against two different Apple IDs. When I try and download content from the Cloud I get an error message?

    I am trying to store music for two different iPods on the same Windows 8 computer, and when I try and download content from the Cloud I get an error message. Is it possible to have two different Apple IDs on the same computer?

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

  • File Upload/Download Problem

    Hi,
    I have a fileupload button. The attributes type is XSTRING, which i bound it with "data" property of download.
    When i download this file with "download" element, it comes in a zip file and as XML files. Only the jpg files are downloaded correctly.
    How can i solve this?
    Thanks.

    Hi,
    I am so sory for my very late answer.
    If you want to upload/download files, you should have a node which includes attributes
    (attribute names are just example ):
    1) filename(type: for example afilename),
    2)mimetype (type : string),
    3) file(type : a data element with type 'RAWSTRING').
    You must match your fileupload element's attributes with them:
    "DATA" attribute --> file ,
    "fileNAME" attribute--> filename,
    "mimeTYPE" attritube -->mimetype.
    When you want to download this file, you should put a filedownload element and match this element's attributes with the node's attributes which i described above.

  • My laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    my laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    See this user tip for recovering the media from the iPhone: https://discussions.apple.com/docs/DOC-3991

  • Download content locally when needed by running task sequence functionality with Windows PE.

    I am trying to understand what happens when the "Download content locally when needed by running task sequence" option in chosen on a task sequence deployment. My assumption is that any needed packages would not be identified
    and downloaded until task sequence is kicked off. 
    Using task sequence boot media, it looks likes a package has been obtained before any task sequence has been selected. I am assuming the package was acquired during the WinPE boot process. Can anyone confirm that this is
    the correct behavior when using the "Download content locally when needed by running task sequence" option? If not, how would WinPE be obtaining the PS100292 SCCM package?
    This specific package contains and HTA file. Only one of  several task sequences deployed to the All Unknown Computers make a call to the HTA file. The one that does, the HTA call is the very first step of the task sequence.
    --Tony

    Hi everyone! I figured what was going on here. I was using an ESX VM and the package was stored on the c:\ from previous attempts and troubleshooting. Long story short, I had to rip the HDD from the VM and add a new one to set every thing back.

Maybe you are looking for

  • Partner Plan training videos

    Hi! We are seriously considering being a premium BC partner. A few questions though: 1. Will BC allow us to use the training videos to make it available for our clients? 2. If so, are those videos rebrandable? 3. I've seen the site bcgurus.com, and i

  • Duplicate rows in Multiselect

    Hi All, Our system have been recently upgraded to OBI 10.1.3.3. We are facing a problem with the multiselect prompts in the application. Now some of the columns used as sources of the multiselect Dashboard prompts have duplicate rows. Any idea how to

  • GPS-status-bar disappeared from Nokia maps

    Why isn't the little gps-status-bar shown anymore in my Nokia maps (3.04)? Positions methode is set to 'integrated gps' only... Any thoughts?

  • JClient DB Connection problem

    hi i use Jdeveloper 10.1.2 and create a JClient project. In this project. i have one main Frame that include many panel just like ApplicationModule testing program and each panel has it own BindingContext so i can do commit,rollback action in it and

  • I have apparently wiped out my iPhone 4 contacts list, my apps, and my photos, etc. by syncing with iTunes.  Is there any way to restore what I had?

    I have apparently wiped out my iPhone 4 contacts list, my apps, and my photos when I synced with iTunes.  Maybe I clicked the wrong button, but I just wanted to download the photos from my phone to my computer.  Is there any way to restore my previou