Applescript - get images from urls in excel

I have huge a excel file with 2 columns, name_* and url picture. Is there a way to automate all the picture download and rename it with name_* to a specified folder?

see if this link helps
Icloud: photostream FAQ http://support.apple.com/kb/HT4486

Similar Messages

  • Get Images from URL's with slight difference?

    Does anyone know how I can download an image referenced in a web page? Get Image URLS from webpage doesn't work, because it is referenced in an unusual way:
    <input type="image" name="theImage" src="http://www.mysite.co.uk.uk/myservlets/myServlet?reqtype=IMG&refresh=184949485733" align="bottom" border="0" WIDTH="400" HEIGHT="400">
    Prior to fetching the image urls, I download the web page from a link, it downloads as html, is there a way to download it as a web archive which might bring the image down as well?
    Rob

    If you're using Firefox, here's something else to try...
    While the web page containing images is open, click on *Tools > Page Info* (or press ⌘I). Click the Media tab and look for a list of image urls in the upper portion of the window. Select any or all of the image urls. Once highlighted, press the *Save As* button in the lower right side of the *Page Info* window. Choose a destination folder and press Open. Image files should be downloaded to the chosen folder.
    Unfortunately, however, during testing (in Firefox 3.6.13), I found that while this method worked fine with some sites, it didn't work so well with others -- Google Images, e.g., would not allow images to be saved. If you encounter similar trouble, you might try setting up and using the workflow below.
    First, create a dedicated download folder, with a name such as "*Firefox Images*." This is important because the workflow's actions will eventually filter out all but the image files in the selected folder -- and its subfolders -- and send any non-image files to the trash. Naturally you'd want to be certain your workflow is acting upon the correct folder, or risk losing essential files elsewhere.
    +Use these actions:+
    1) *Get Selected Finder Items*
    2) *Get Folder Contents* -- check "Repeat for each subfolder found"
    3) *Filter Finder Items* -- filter out non-images:
    Whose: File Type - *Is not* - TIFF Image File -- click the "+" button and add to the list:
    Whose: File Type - *Is not* - JPEG Image File -- click "+" and continue adding:
    Whose: File Type - *Is not* - JPEG 2000 Image File
    Whose: File Type - *Is not* - PICT Image File
    Whose: File Type - *Is not* - GIF Image File
    Whose: File Type - *Is not* - PNG Image File
    Whose: File Type - *Is not* - BMP Image File
    4) *Move to Trash*
    5) *Get Selected Finder Items*
    6) *Get Folder Contents* -- leave "Repeat for each subfolder found" unchecked
    7) *Filter Finder Items* -- remove the accompanying HTML file from the downloaded items:
    Whose: File Type - Is - HTML File
    8) *Move to Trash*
    From Automator's File menu choose *Save As > File Format: Application*. The saved applet will be used as a droplet.
    Firefox web pages to be processed should be saved directly to the newly created "*Firefox Images*" folder. Choose *Save As: Web Page, complete*. Saved web pages can be acted upon individually, or you can fill the Firefox Images folder with multiple saved pages before running the workflow. (How many would be too many to act upon before the workflow fails, however, is unknown; I tested the workflow on only a half dozen or so saved pages at a time).
    To run the workflow, simply drag and drop the Firefox Images folder onto the saved Automator applet's file icon and allow the workflow to complete.
    Good luck, hope this helps.

  • Unable to export image from Webi to  excel.

    Hi,
    Can any one provide solution for export image from webi to excel( 3.1 & 4.0).
    Thanks,
    Praveen

    given link(https://service.sap.com/sap/support/notes/1299111) is not working.
    the above link contain
    Symptom
    Unable to Export images from a Web Intelligence report to Microsoft Excel.
    A Web Intelligence report is created using images to denote alerts. The report works OK in Web Intelligence but when exported to Microsoft Excel, the images do not display.
      Environment  
    Business Objects Enterprise XI Release 2
    Business Objects Enterprise XI 3.1
      Reproducing the Issue  
    Create a simple Web Intelligence document.
    Add a blank cell and within that cell link it to an image. (Either set as background for the cell or Image URL.)
    Save and export to Excel. The image will not be displayed.
    Cause
    Web Intelligence export engine does not support the export of images to excel.
    Resolution
    In BI4.0, Web Intelligence export engine does support the export of images to excel.
    Workaround 1 :
    Most image formats are supported in PDF export. Users may be able to use that as an alternative.
    Workaround 2 :
    If images are required in the final Excel document, the user would need to recreate those image links manually in Excel.
    Keywords
    Export , image , excel , WRC, Webi ,XIR2, XI3.1 , BI4.0
    Header Data
    Released On
    21.10.2011 14:43:35   
    Release Status
    Released to Customer   
    Component
    BI Business intelligence solutions  
    Priority
      Normal  
    Category
      Problem  
    Product
    Product
    Product Version
    SAP BusinessObjects Business Intelligence platform
    SAP BusinessObjects Enterprise XI 3.0

  • Download Images from URL

    I want to save images to memory 50 images
    My software processing ----
    1. Download Image from URL every 60 secs and all downloaded images have time to use 15 mins
    2. When download image done save images to memory
    3. Then show images in picturebox
    4. When user click button get next image form memory and delete old image from memory
    5. If what images not use in 15 mins auto delete from memory
    Help me ... Thank you a lot 

    Ok chechk the below method/Events that will download 50 image and fill a List<image> object into memory, you need to add a picturebox1 and button1 to your form, I used my profile pic here on msdn the link you've send didn't work:
    //Global Variables
    List<Image> li = new List<Image>();
    int second = 0; //Form Initaile
    public Captcha()
    InitializeComponent();
    //Async download event
    private void ReadCallback(IAsyncResult asynchronousResult)
    HttpWebRequest request = (HttpWebRequest)asynchronousResult.AsyncState;
    HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asynchronousResult);
    using (StreamReader streamReader1 = new StreamReader(response.GetResponseStream()))
    li.Add(Image.FromStream(streamReader1.BaseStream));
    pictureBox1.Image = li[0];
    //Download Method for 50 images
    private void DownLoadImages()
    try
    for (int i = 0; i <= 50; i++)
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri("https://i1.social.s-msft.com/profile/u/avatar.jpg?displayname=fouad%20roumieh&size=extralarge&version=00000000-0000-0000-0000-000000000000"));
    request.BeginGetResponse(new AsyncCallback(ReadCallback), request);
    catch (WebException ex)
    //Form Load
    private void Captcha_Load(object sender, EventArgs e)
    DownLoadImages();
    And here on button click event we remove element and show the next one into picture box, and if used up all image we call the async download messages again to get a new list of images:
    private void button1_Click(object sender, EventArgs e)
    li.RemoveAt(0);
    if (li.Count > 0)
    { //Show next
    pictureBox1.Image = li[0];
    else
    DownLoadImages();
    Also here a timer event I didn't enable but you can enable to check for the 15 mins and destroy the images list if passed:
    private void timer1_Tick(object sender, EventArgs e)
    second = second + 1;
    int minutes = second / 60;
    if (minutes >= 15)
    li.Clear();
    //Call downloadimages or else...
    Fouad Roumieh

  • Rich text box used in Infopath Form not displaying option to get images from Computer

    Hello,
    We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
    Options available are : From Address, From SharePoint
    But if we Rich text box in list, then it works fine with "From Computer" option.
    can you please help me out to get this option.
    Thanks in advance.
    REgards,
    Jayashri

    Hi,
    From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
    Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
    About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
    Visual Studio Tools for Office:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
    Thanks,
    Dean Wang

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • How do I get images from Aperture into print shop for mac?

    Friends,
    I have Print Shop for Mac and Aperture. How do I get images from Aperture into Print Shop? I'musing managed images with previews. Is there any option besides exporting to the desktop and importing?
    Thanks!
    Steve

    if you have previews turned on in Aperture and they're all genereated, you can simply drag-n-drop them into any application (just about). drag-n-drop is essentially the same as copy/paste as long as the application is setup to accept "drops" onto its windows.
    otherwise, if you're running Leopard (10.5) as your version of Mac OS X, when you import (or whatever it is in PrintShop), you should get a file selection dialog. from here, scroll down the left-hand side bar set of icons. near the bottom is a group called "Media". click on the triangle to open the group, choose Photos, and from here you should see an Aperture icon. click this and you'll see your whole library (or at least the portion of it that you have previews generated for. select the photo you want and viola!
    scott

  • Get image from Excel as shape and Save as .jpg

    Hello,
       I'm fairly new to ActiveX and am having a hard time doing a seemingly simple thing: getting a named image from an Excel file and saving it as a .jpg.  I have seen similar things done for Excel chart objects, but as I understand it images are "shapes" in Excel and I've been unable to find the right method to extract a shape. Please, if anyone could take a look at the attached folder and tell me if I am on the right track, if there is a better way to do this, or if there is a way to do this at all, it would be helpful.  Note that I don't care how efficient a strategy is developed - if I need to save to an intermediate file of another type, that's fine. The only goal is to be able to extract this image and save it with one mouse-click and no manual intervention.
    Folder contains: 1 example Excel file containing the image named "Picture 1"; 1 vi showing the method I've found for exporting Excel charts as .jpg's; and 1 vi with the progress I have made so far trying to pick the image from the Excel file and save it as a .jpg.  
    Thanks in advance!
    Megan
    Solved!
    Go to Solution.
    Attachments:
    GetExcelPicture.zip ‏70 KB

    Hi megan,
    see this link.
    Hope it helps.
    Mike

  • Download image from URL with applescript

    I want to download an image from an website (and internal IP address) using applescript,
    now I have found a script that works (Download jpeg image to folder with AppleScript from URL).
    But, the web page requires a username and password...
    When I convert the downloaded JPEG into a HTML by simply changing the extension, quick look displays the webpage's 401 unauthorized error page...
    Does someone know how to make the applescript input the username and password?

    The answer depends on how the authentication is managed.
    There are two common ways of implementing authentication in web browsers and knowing which one is used here is essential to scripting the request. One is also significantly harder than the other.
    The first (easy) way is that the username and password can be submitted with the request. This is the original model and is easy to script - if you're using the curl model then it's just a matter of adding the -user switch to the command line:
           -u, --user <user:password>
                  Specify the user name and password to use for server authentica-
                  tion. Overrides -n, --netrc and --netrc-optional.
    This model is a little less secure, though, but might still be used on internal sites since it's easy to implement.
    The other option is that the site uses cookies - you log in via a web form and the server gives your cookie which you then send with subsequent requests and are used to validate your access. This is a more secure, but is harder to implement because there is a multi-step process - login via the web form, capture the cookie, submit the cookie with the download request.
    If you're not familiar with the different methods it can sometimes be hard to tell which one you need, and since it's an internal site there's no way anyone else can check... so you'll need to describe how you login to the site (or are prompted for authentication) before anyone can provide a direct answer.

  • Get Images from jar. getResource() not working

    I've read some of the posts in the forum and I've tried the solutions but still cant get the images in my program.
    I'll write all the things I've tried (All of them works fine when I run them from bluej):
    1- The code used in the jar files in demo folder of jdk:
    /** Inside the main class: */
    private static ResourceBundle resources;  
        static {
            try {
                resources = ResourceBundle.getBundle("resources.Recursos", Locale.getDefault());
            } catch (MissingResourceException mre) {
                JOptionPane.showMessageDialog(new JFrame(), "ResourceBundle not found","Error",JOptionPane.ERROR_MESSAGE);
                System.exit(1);
    public String getResourceString(String nm)
            String str;
            try {       
                str = resources.getString(nm);   
                  } catch (MissingResourceException mre) {       
                str = null;
            return str;
        public URL getResource(String key)
            String name = getResourceString(key);
            if (name != null)
                URL url = getClass().getResource(name); //  Here is the exception
                return url;  
            return null;
        public ImageIcon loadImage(String image_name)
            URL image_url = null;    
            try
                image_url = getResource(image_name);             
                if (image_url != null)
                    return new ImageIcon(image_url);
                else
                return null;                  
            }catch(Exception e)
                JOptionPane.showMessageDialog(new JFrame(), e.getMessage() + "In load Image","Error",JOptionPane.ERROR_MESSAGE);
                return null;
    /** Inside the constructor */
    abrirButton = new JButton(loadImage("open"));
    }//End of the class}
    The ResourceBundle is a file named: Recursos.properties and it's in a folder inside the folder of my *.class and *.java And have this information:
    Title=Recursos
    ElementTreeFrameTitle=Elements
    ViewportBackingStore=false
    open=resources/open24.gif
    save=resources/saveAs24.gif
    cut=resources/cut24.gif
    copy=resources/copy24.gif
    paste=resources/paste24.gif
    analisis=resources/bean24.gif
    This one, runs with the jar, but the images are not in the buttons and I get the Dialog message telling me that there was an error in loadImage. Check that method. I used this dialogs to track the error and the exception it's generated by:
    URL url = getClass().getResource(name);
    in public URL getResource(String key) method.
    2- I also tried to follow the instructions of this article that describes how to get resources from jars:
    http://www.javaworld.com/javaworld/jw-07-1998/jw-07-jar-p2.html
    This is the first page of the article:
    http://www.javaworld.com/javaworld/jw-07-1998/jw-07-jar.html
    And I did something like this:
    /** Inside constructor */
    abrirButton = new JButton(new ImageIcon(getImageFromJAR("Imagenes/open24.gif")));
    /** Inside of my main class */
    public Image getImageFromJAR(String fileName)
               try{
               if( fileName == null ) return null;          
               Image image = null;
               Toolkit toolkit = Toolkit.getDefaultToolkit();          
                image = toolkit.getImage( getClass().getResource(fileName) );           
                return image;
                }catch(Exception exc){
                    JOptionPane.showMessageDialog(new JFrame(), "Exception loading the image","Error",JOptionPane.ERROR_MESSAGE);
                    return null;
    ...The images in this one are in the folder Imagenes inside the folder of my *.class and *.java
    This one work fine in bluej too, but the jar... It doesn't even start.
    3- And the last one.
    abrirButton = new JButton(new ImageIcon(getClass().getResource("Imagenes/open24.gif"));Works fine in bluej, not running in jar.
    Am I doing something wrong? Please somebody help me.
    thanks in advance

    Are you putting the image files inside the jar? If you are, then use "jar tf jarfile.jar" to display the contents of the jar and make sure the files are there and inside the right directory. If you are not, then you can not use getClass().getResource() from a jar file because it will look inside the jar file.
    If you are getting an error message, please post it.

  • Saving Images from URL

    Hi
    i am trying to save an image from the internet i am able to view them in my program but when i try to save i get the Error
    javax.imageio.IIOException: Can't read input file!
    If anyone could point out were i am going wrong or give a few suggestions on what to do this would be very helpful.
    Below is the code i am using to to get the image from the internet and try to save it
    public Image loadURL()
         Image image = null;
         try
              URL url = new URL(UrlLocation);     
              image = ImageIO.read(url);               
              File2 = url.toString();               
         catch (IOException e)
              e.printStackTrace();
         return image;     
    public void saveImage(String ImageType)
              try
                   FileDialog openfiledialog = new FileDialog(new Frame(),
                   "Please choose Image to save",FileDialog.SAVE);
                   openfiledialog.setVisible(true);          
                   if (openfiledialog.getFile() != null)
                        File file = new File(openfiledialog.getDirectory(),
                        openfiledialog.getFile() + "." + ImageType);                                   
                            File outputfile = file;               
                        ImageIO.write(out, ImageType, outputfile);
              catch (IOException e)
                   e.printStackTrace();
         }

    Umm, you need to actually read the image bytes from the external webserver. It will do you good to read the javadoc for URLConnection (retrieved through URL). You can read an InputStream from it, and then you can for example put what you read into an ByteArrayOutputStream. You can ask this output stream for a byte array containing what has been written to it, and then you can write this byte array into a FileOutputStream. There may be ways to make this more effective, but these steps are essentially what should happen to solve your problem.

  • Getting images from the web

    When I copy an image from the web and paste it in AI the URL is inserted and not the image.  How do I change that?

    I understand the rights issue and I am complying to any rights issue.  The issue that I am having is at home I can copy and paste an image in to AI from the web but at work I cannot do the same thing.  It is an extra step that I am not use to.  I know it is some sort of setting I just cannot find. 
    For example, if you look up "tigers" on Google, take the first image of tiger and paste it in AI are you able to do it?
    When I do this I get the below text instead of the image:
    http://upload.wikimedia.org/wikipedia/commons/1/17/Tiger_in_Ranthambhore.jpg
    Any help will be greatly appreciated, I use a ton of images from my factories that I need to use for my job.

  • C# VisualWebpart get Images from a specific Image Library.

    Hello,
    I'm working on a VisualWebpart Project in VS2013.
    Are there any possibilities, where I can get the Images from a Image Library?
    Like this:
    //pseudocodeSPLibrary imagesLib = new SPLibrary("mySite\Library")
    var imageList = imagesLib.GetContent(".jpg")
    Thank you.

    SPList LstPicture = web.Lists["yourlist"];
    List<ImageCollection> lsts = new List<ImageCollection>();
    foreach (SPListItem item in LstPicture.Items)
    string ImageUrl = Convert.ToString(item["Thumbnail URL"]);
    string ImageName = Convert.ToString(item["Name"]);
    lsts.Add(new ImageCollection(ImageUrl, ImageName));
    or
    SPWeb thisWeb =
    SPContext.Current.Web;
    SPPictureLibrary pictures
    = (SPPictureLibrary)thisWeb.Lists["Houston
    Photos"];
    int pictureCount = pictures.ItemCount;
    int index = randomNumber.Next(pictureCount);
    string source = thisWeb.Url
    + "/"
    + pictures.Items[index].Url;
    var image =
    new Image();
    image.ImageUrl
    = source;
    image.Height
    = 200;
    this.Controls.Add(image);
    or
    SPPictureLibrary chartPictureLibrary = (SPPictureLibrary)web.Lists["UrPictureLibraryName"];
    SPQuery query = new
    SPQuery();
                            query.Query =
    @"<Where><Eq><FieldRef Name ='Title'/><Value Type='Text'>" + fileName +
    "</Value></Eq></Where>";
    SPListItemCollection lstImages = chartPictureLibrary.GetItems(query);

  • Reading images from URL without knowing the format

    I have an image url like this: http://example.com/image.php?id=5605. How do I get the actual image from such an URL? I have tried using ImageIO.read and loading the url directly into an ImageIcon without success.

    yeah,
    I knew a little about linearization and but the idea was to help quick loading the very first page of a document while the rest of the data still is arriving. Not exactly what I needed here.
    Anyway, you have just confirmed my fears, I will have to know the document size, where exactly it ends on my stream, in order to correctly load it.
    I appreciate your help sir. Thanks for your time.
    Best regards.

  • Downloading images from URL

    Hi All,
    I am trying to write code to download images from given URL. My application will take URLs by querying sql server, will pass that URL to my method and download images to a specific folder. There will be almost 400 images a day to download. I figured out some options like getImage(). But I would like to get idea from you to find the most efficient way to do this.
    Here is the initial code I have come up with
    private void downloadimage() throws Exception {
              String sql = "SET NOCOUNT ON SELECT DISTINCT activation_group_id FROM ACTIVATION_GROUP";
              JdoServer jdo = JdoServer.getInstance(dbKey);
              RowSet rs = jdo.getRowSet(sql);
              while (rs.next())
                   //will fetch URL from rs here, currently passing hardcoded URL for testing purpose.
                   // Get the image
                   MediaTracker tracker;
                   tracker = new MediaTracker(this);
                   Toolkit toolkit = Toolkit.getDefaultToolkit();
                   Image image = toolkit.getImage(new URL ("http://digitalcontent.cnetchannel.com/70/e1/70e18a07-7356-4a54-8498-1493da1dec3d.jpg"));
                   tracker.addImage(image, 0);
    Somehow, tracker = new MediaTracker(this) is giving me the consstructor mediatracker(myclassname) not defined error.
    I am a recent graduate and it's my first project... any help would be appreciated :)
    Thanks

    Ok, here is the update... I have tried something new which is here...
    import java.io.*;
    import java.net.*;
    public class image
         public static void imageDL(String imageURL, File Outputfolder)                     
                   throws MalformedURLException,IOException,FileNotFoundException
              OutputStream out = null;
              URLConnection conn = null;
              InputStream  in = null;     
              int imgNameIndex = imageURL.lastIndexOf('/');
              if (imgNameIndex >= 0 && imgNameIndex < imageURL.length() - 1)
                   try {
                        URL url = new URL(imageURL);
                        String file = url.getFile();
                        file = file.substring(7);
                        out = new BufferedOutputStream(new FileOutputStream(Outputfolder.getAbsolutePath()+ file));
                        conn = url.openConnection();
                        in = conn.getInputStream(); // here's where I am getting error
                        byte[] buffer = new byte[1024];
                        int numRead;
                        long numWritten = 0;
                        while ((numRead = in.read(buffer)) != -1)
                             out.write(buffer, 0, numRead);
                             numWritten += numRead;
                        System.out.println(imageURL.substring(imgNameIndex + 1) + "\t" + numWritten);
                   catch (Exception exception)
                        exception.printStackTrace();
              else
                   System.err.println("Could not figure out local file name for " + imageURL);
         in.close();
         out.close();
    }Everythign works fine, until it reaches in = conn.getinputstream();
    It throws error there:
    java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
         at sun.net.www.http.HttpClient.New(HttpClient.java:339)
         at sun.net.www.http.HttpClient.New(HttpClient.java:320)
         at sun.net.www.http.HttpClient.New(HttpClient.java:315)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
    Any insight??

Maybe you are looking for

  • Error in generated mapping

    I got this error : ORA-06553: PLS-103: Symbole "" rencontré à la place d'un des symboles suivants : . ( ) , * @ % & | = - + < / > at in is mod remainder not range rem => .. <exposant (**)> <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ betw

  • Can't upgrade from 10.8 to 10.8.1 on Macbook Pro 17" 2.93 GHz Intel Core 2 Duo

    When I try and upgrade on my 2.93 GHz Intel Core 2 Duo 17" from 10.8 to 10.8.1 there is no update in Software Update/App Store. So I have downloaded the 10.8.1 patch from http://support.apple.com/kb/DL1571 it says that my machine "OSX Update can't be

  • HTML file in a table

    I am a photographer - I use lightroom to create html browsers for my clients. These files are posted in a the web with unique URLs. I have created seperate HTML file in Dreamweaver that contains indexes to these URLs for clients to scroll through. Wh

  • Need detailed manual showing how to install a pentium III motherboard on compaq armada m700

    I tried ti install a pentium III on my pentiumII compaq armada m700 It fails to power up. . I need detailed and complet directions with picturesshowing how to do this..additionally getting the screws out and in was near impossibe. Any suggestion ther

  • Griffin iMic, no stereo

    Just set up a Mac Mini. One of the intended uses is to copy old vinyls and personal tapes. For input, I use a Griffin iMic through an amp NAD 3225PE. No trouble except no way of getting full stereo, only one channel works. The same with my G4 iBook.