LrHttp.get redirect and downloading a file "zip"

I trying to figure if I can use LrHttp.get to download a zip file via a URL that does a redirection can anyone help?

This is the entire file, executed when user selects plugin extra from file menu:
local function httpRedirTest( call )
    local body, headers = LrHttp.get( "http://www.robcole.com/_test/redir2zip.cfm" )
    fso:writeFile( "C:\\_temp\\nada_.zip", body )
end
app:call( Service:new{ name="Test", async=true, guard=App.guardVocal, main=function( call )
    httpRedirTest( call )
end } )
Note: app-call-service-new... is a glorified call to LrFunctionContext.postAsyncTaskWithContext.
i.e. it must be called from an asynchronous task.
What is or is not happening when you execute similar code?
Could the problem be due to internet configuration (i.e. can your browser download the zip file when you click on the link above?).
Can you download zips when not through redirection?
i.e. if you replaced the url above with:
http://www.robcole.com/_test/nada.zip
does it work?
Rob

Similar Messages

  • How to get Header in Downloaded .xls file using  GUI_Download function

    How to get Header in Downloaded .xls file using  GUI_Download function ???
    How to use the the Header parameter available in GUI_Download function .

    HI,
    see this sample code..
    data : Begin of t_header occurs 0,
           name(30) type c,
           end of t_header.
    data : Begin of itab occurs 0,
           fld1 type char10,
           fld2 type char10,
           fld3 type char10,
           end   of itab.
    DATA: v_pass_path TYPE string.
    append itab.
    itab-fld1 = 'Hi'.
    itab-fld2 = 'hello'.
    itab-fld3 = 'welcome'.
    append itab.
    append itab.
    append itab.
    append itab.
    append itab.
    t_header-name = 'Field1'.
    append t_header.
    t_header-name = 'Field2'.
    append t_header.
    t_header-name = 'Field3'.
    append t_header.
      CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
        EXPORTING
          default_extension     = 'XLS'
        IMPORTING
          fullpath              = v_pass_path.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_pass_path
          filetype                        = 'DBF'
        TABLES
          data_tab                        = itab
          FIELDNAMES                      = t_header
    Cheers,
    jose.

  • How to upload  and download a files into AL11 directory in ABAP

    Hi,
                   How to upload  and download a files into AL11 directory in ABAP
    thanks
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 21, 2011 9:18 AM

    You should try one of these forums for an answer to your question:
    http://swforum.sun.com/jive/forum.jspa?forumID=116
    http://community.java.net/netbeans
    http://linux.java.net

  • How to get instrument and plug in files to logic8?

    How to get instrument and plug in files to logic8?
    I lost mine in a hard drive crash.
    I cant use my DVD jam pack
    This is my spec
      Modellnamn:          iMac
      Modellidentifierare:          iMac8,1
      Processornamn:          Intel Core 2 Duo
      Processorhastighet:          2,4 GHz
      Antal processorer:          1
      Totalt antal kärnor:          2
      L2-cache:          6 MB
      Minne:          3 GB
      Busshastighet:          1,07 GHz
      Boot ROM-version:          IM81.00C1.B00
      SMC-version (system):          1.29f1
    iMac, OS X Mountain Lion (10.8.2)

    I think you want to get the latitude and longitude information of client accessing the web application. In the web application you cannot directly get the client location information as the nature of the web application is different from windows applications.
    I advise you to develop a Silverlight component and in that Silverlight component use geolocation classes to get client location. Please refer this article for getting data in Silverlight http://www.c-sharpcorner.com/UploadFile/82b980/getting-geo-location-of-user-in-silverlight/
    And once you get the location information you can send that data back to ASP.net webpage or call any javascript method as shown here http://ovaismehboob.wordpress.com/2013/06/22/bridging-data-between-asp-net-and-silverlight/
    Hope this helps!
    Ovais Mehboob Ahmed Khan http://ovaismehboob.wordpress.com

  • Apex application file -upload and download a file.

    hi
    im having an issue with an application i created,its about uploading and downloading a file in application.the application is working and was able to upload and download a file but i have not idea there the file is stored in the application database,try to search for the file,its something dealing with the apex_application_file and i cant find it.
    Any idea where the file is stored?
    thnx
    nivesh

    Dear nivesh!
    If you upload a file into an APEX application the file is temporarily stored in the APEX_APPLICATION_FILES table. If you close your current application page the APEX_APPLICATION_FILES table will be cleared. You should create your own table to store files in a BLOB column. I've create an example for uploading images into an APEX application on apex.oracle.com. If you want to have a look at it please use the following credentials:
    Workspace: flo_demo
    Username: dev_null
    Password: password
    Application: 61811
    Yours sincerely
    Florian W.

  • PSE 8 Organizer: Bug in "Get Photos and Videos from Files and Folders"

    In PSE8 Organizer, I have a weird bug that occurs when I am using Get Photos and Videos from Files and Folders on certain folders on my hard drive. If the "Files of Type" filter is left as the default ("Media files (photos, audio, video)"), whenever I click on a file in the file browser, three or four files or folders seem to disappear from the folder. I can keep clicking on different items until every file and folder has apparently vanished from the folder. Looking in Windows Explorer, the files and folders are still there, and if I switch the "Files of Type" filter to "All Files", everything reappears and the behavior no longer occurs.
    I'm not sure why only certain folders show this behavior. It may have something to do with the types of files or folders in the folder I'm looking at, but I'm not sure.
    Has anyone else seen this happen?

    Are you on Win 7? If the files in the Get Photos dialog disappear after you select them,confirm if the names of selected files/folders is shown under the File name . If yes, you can import these files by clicking Open. You should find the issue addressed in E9.
    Thanks

  • Can I connect to my microsoft network via VPN and download network files?

    Can I connect to my microsoft network via VPN and download network files to my iPad2?  If so, what app is required?

    There are several apps available from App Store but the one I use is iTeleport.
    Oops the Windows specific version is called Jaadu Remote Desktop for Windows
    Message was edited by: Joe Bailey to add Windows version

  • How to upload and download any file from plsql through weblogic server

    hi all,
    how to upload and download any file from plsql through weblogic server? i am using oracle 10g express edition and jboss.
    Thanks and Regards,
    MSORA

    hi bala ,
    for a windown server u can use VNC (virtual network connection) which opens a session on u r desktop later u can drag and drop form there vice versa and for a linux box you can use Win SCP which helps to open a session with interface to u r desktop in both cases you can upload and down load files very easiy just as we drag and drop items in a simple pc .. we use the same technique...
    bye
    vamshi

  • Question does anyone know a great app to get find and download free books instead of ibooks

    Question does anyone know a great app to get find and download free books instead of  using ibooks?

    wanting everything in a single resource is too much to ask. You should split your query into three:
    1) how to make platform games
    2) how to make games in a windowed environment
    3) how to do games in applets
    For the first, that is quite difficult to put in a book as a generic topic. What you are looking for is how to make games, with that knowledge you should be able to figure out how to do a platform game. That is quite an involving task. You will have to find out:
    1.1) how to efficiently blit graphics
    1.2) 2D collision detection
    1.3) framerate independent animations and movement
    1.4) the "game loop"
    as a start.
    Making games in a windowed environment is not much different than fullscreen games actually; only the size of the screen is different. Other than that there shouldn't be much difference between the two, other than at the hardware level which you will probably not have to worry about too much in your beginning game development endeavors.
    How to do a game in an applet: it is not much different from doing a game in a regular Swing application. I would start there and then later figure out how to do it in an applet. Using a Swing timer and custom painting on a JPanel should get you far enough, I would think.
    For later projects you may want to look into the Slick library, which you can find here: http://slick.cokeandcode.com/ . I wouldn't start there though, start simpler with Swing only.

  • Upload and download the file same name but different extension from the document library.

    HI,
         I am using the Client Object Model (Copy. Asmx ) To upload and download the file from the document library.
    I am having the mandatory File ID for the each Document.
    I tried to upload the the document (KIF53.txt) with File ID (KIF53) uploaded successfully.
    Again I tried to Upload the document(KIF53.docx) With File ID(KIF53) its uploaded the file but it not upload the File ID in the Column
    Please find the below screen shoot for the reference.

    thanks ashish
    tried 
    My requirement is to create the  folder and sub folder in SharePoint document library. If already exist leave it or create the new folder and the subfolder in the Document library using client side object model
    I able to check for the parent folder.
    But cant able to check the subfolder in the document library.
    How to check for  the sub folder in the document library?
    Here is the code for the folder IsFolder alredy Exist.
    private string IsFolderExist(string InputFolderName)
            string retStatus
    = false.ToString();
            try
                ClientContext context
    = newClientContext(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryLink"]));
    context.Credentials = CredentialCache.DefaultCredentials;
                List list
    = context.Web.Lists.GetByTitle(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryName"]));
                FieldCollection fields
    = list.Fields;
                CamlQuery camlQueryForItem
    = new CamlQuery();
    camlQueryForItem.ViewXml = string.Format(@"<View 
    Scope='RecursiveAll'>
    <Query>
                          <Where>
    <Eq>
    <FieldRef Name='FileDirRef'/>
    <Value Type='Text'>{0}</Value>
                            </Eq>
    </Where>
    </Query>
    </View>", @"/sites/test/hcl/"
    + InputFolderName);
    Microsoft.SharePoint.Client.ListItemCollection listItems
    = list.GetItems(camlQueryForItem);
    context.Load(listItems);
    context.ExecuteQuery();
                if (listItems.Count
    > 0)
    retStatus = true.ToString();
                else
    retStatus = false.ToString();
            catch (Exception ex)
    retStatus = "X02";
            return retStatus;
    thanks
    Sundhar 

  • How to upload and Download the file in a system through java programing

    I am trying to upload a file as well as want to download the uploaded file in my system....I don't have any server an all.
    I want to implement this in my system only .
    I got this code but i don't know ,where i have to make the change and what are the parameters i have to pass.
    can any one help me on this code ....please
    here some piece of code
    File Upload and Download Code Example
    package com.resource.util;
    public class FileUpload
    public void upload( String ftpServer, String user, String password,
    String fileName, File source ) throws MalformedURLException,
    IOException
    if (ftpServer != null && fileName != null && source != null)
    StringBuffer sb = new StringBuffer( "ftp://" );
    // check for authentication else assume its anonymous access.
    if (user != null && password != null)
    sb.append( user );
    sb.append( ':' );
    sb.append( password );
    sb.append( '@' );
    sb.append( ftpServer );
    sb.append( '/' );
    sb.append( fileName );
    * type ==> a=ASCII mode, i=image (binary) mode, d= file directory
    * listing
    sb.append( ";type=i" );
    BufferedInputStream bis = null;
    BufferedOutputStream bos = null;
    try
    URL url = new URL( sb.toString() );
    URLConnection urlc = url.openConnection();
    bos = new BufferedOutputStream( urlc.getOutputStream() );
    bis = new BufferedInputStream( new FileInputStream( source ) );
    int i;
    // read byte by byte until end of stream
    while ((i = bis.read()) != -1)
    bos.write( i );
    finally
    if (bis != null)
    try
    bis.close();
    catch (IOException ioe)
    ioe.printStackTrace();
    if (bos != null)
    try
    bos.close();
    catch (IOException ioe)
    ioe.printStackTrace();
    else
    System.out.println( "Input not available." );
    }

    At least that is what the code you posted suggests to me.It looks like that to me too.
    I believe that
    URLConnection urlc = url.openConnection(url);Will return you an FTP URLConnection implementation if you pass it a ftp:// url
    So for simple FTP ops, you don't need any external libs.
    Actually, looking at your code, this is already what you are doing, so I really don't get this:
    am not using FTP server..... i want to implement in my system only ....So How i will do.
    Can you give me any idea based on this code Can you explain a bit more what you need?
    patumaire

  • Add Ons,Internet Explorer and downloading PDF files

    There is one website where I have an issue downloading some PDF files,I do not have problems on any other website,admin at problem website gets no other complaints.
    I use Adobe Reader 11.0.08.
    I discovered that if I DISABLE the ADD ON in Internet Explorer for Adobe Reader I can easily download all content from this problem website ,If I ENABLE ( my norml operation ) the ADD ON for Adobe Reader ,the PDF download problem appears again.
    What exactly is the ADD ON doing ? I'm under the inmpression that it ties software to a website ,so when I ask for a PDF file on a website, the website looks for Adobe Reader and the PDF file opens  ,using Adobe Reader . . . if I disable the ADD ON . . . doesn't the website NOT know how to give me the PDF file . . .  yet with the ADD ON Disabled this problem website downloads the PDF file using Adobe ( it said it is using Adobe ) with no problem ?
    Why ??
    This issue happens on two differnt PC's ??

    P.Willener,
    Thanks for response.
    The website is not public ,that I have PDF download issues using Adobe Reader 11.0.08. I have no PDF download issues on any other website with PDF files.
    On this problem site I can download some files, others I can't.
    The website admin gets no other complaints from other website users.
    I discovered that on a friends new PC ,this website works good and I can download all files, no problems.
    I have an older PC ( 2008 vintage )  ,it runs Windows 7 and IE 11 , with this PC I have PDF download issues on this website only , when the problem occurs the files stop and never complete downloading,  all recent website PDF  files download OK, older files do not ,on my PC   . . . but if I DISABLE the Adobe Reader ADD ON ,ALL files download with no problem, if I ENABLE the Adobe ADD ON ,I have problems.
    My question is . . . why ?  When the ADD ON for Adobe Reader is ENABLED what is different then when the ADD ON is DISABLED ,for Adobe Reader ?
    To me ,it seems that in the ENABLED mode ,the PDF file is opening within the IE browser ,using Adobe Reader , when the ADD ON is DISABLED the PDF file is opening in the External Reader mode , using Adobe Reader am I correct on this thinking ????
    So again why would I have issues on this one website only ?  Yes there is a work around but my normal way of operating is what the Adobe Reader ADD ON ENABLED.
    Any ideas what is going on ????  If you suspect the website any thoughts on what their problem could be ????   Again they get no other complaints ,I guess they all have new PC's.
    Al

  • TS1702 trying to download mp3 get: Safari cannot download this file

    I am trying to download MP3  even tried AAC I receive error Safari cannot download this file..  I am clueless in how to do this thank you Linda

    You can't download music via Safari. If you are trying to get music into the Music app then you will either need to buy/download them via the iTunes store app, or download them on your computer and sync them. If you are using a third-party music app then does it have its own browser function for downloading music, or does it only support copying via a computer's iTunes ?

  • To upload and download any file to the server

    Hi,
    I want to upload and download files into and from the server; as we do it in yahoo attachments. Give the location of the file, click upload, it must upload the file to the web server and click on the uploaded file, it should get downloaded. i want to do this in Application server.
    Can anyone help me on this please......
    Thanks in advance,,
    Bala

    hi bala ,
    for a windown server u can use VNC (virtual network connection) which opens a session on u r desktop later u can drag and drop form there vice versa and for a linux box you can use Win SCP which helps to open a session with interface to u r desktop in both cases you can upload and down load files very easiy just as we drag and drop items in a simple pc .. we use the same technique...
    bye
    vamshi

  • How to get lightroom3 to download raw files from Canon 70D even though I have downloaded DNG 8.5

    I have a Canon 70D and my old lightroom3 will not download raw files even though I have downloaded DNG 8.5 on my iMac. how can I overcome this problem?

    theovanderveen wrote:
    I was being lazy and hoping that Adobe might have created some sort of patch which would allow me to import directly from my camera to lightroom
    Neither Adobe, nor any other company that produces a Raw converter, ever retrospectively adds new camera support to old (obsolete) versions of their software.

Maybe you are looking for