Save Image from excel

Hi,
I want to export images from an excel sheet. Cell A1 would be the input of the folder name where the images would be saved.Column C will contain images. Once a user click on a button all the images that are in column C will be exported to the folder name
mentioned in cell A1. The image name would be decided based on their appearance in excel sheet. E.G. 1st image in C column would have file name as Image 1,2nd image Image 2 and so on... until last image found in C column.  I have one piece of code but
I am getting Out of memory error.Any help would be appreciated.
Const saveSceenshotTo As String = "C:\Users\Deb\Desktop\" ' change path to where you want to save
Const pictureFormat As String = ".jpg" ' change file extension
Private Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Integer) As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (PicDesc As uPicDesc, RefIID As GUID, ByVal fPictureOwnsHandle As Long, IPic As IPicture) As Long
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(0 To 7) As Byte
End Type
Private Type uPicDesc
Size As Long
Type As Long
hPic As Long
hPal As Long
End Type
Private Const CF_BITMAP = 2
Private Const PICTYPE_BITMAP = 1
' run this sub to export pictures
Private Sub CommandButton1_Click()
Dim i As Long
i = 1
Dim pic As Shape
For Each pic In ActiveSheet.Shapes
pic.Copy
MyPrintScreen (saveSceenshotTo & Range("A" & i).Text & pictureFormat)
i = i + 1
Next
End Sub
Public Sub MyPrintScreen(FilePathName As String)
Dim IID_IDispatch As GUID
Dim uPicInfo As uPicDesc
Dim IPic As IPicture
Dim hPtr As Long
OpenClipboard 0
hPtr = GetClipboardData(CF_BITMAP)
CloseClipboard
With IID_IDispatch
.Data1 = &H7BF80980
.Data2 = &HBF32
.Data3 = &H101A
.Data4(0) = &H8B
.Data4(1) = &HBB
.Data4(2) = &H0
.Data4(3) = &HAA
.Data4(4) = &H0
.Data4(5) = &H30
.Data4(6) = &HC
.Data4(7) = &HAB
End With
With uPicInfo
.Size = Len(uPicInfo)
.Type = PICTYPE_BITMAP
.hPic = hPtr
.hPal = 0
End With
OleCreatePictureIndirect uPicInfo, IID_IDispatch, True, IPic
SavePicture IPic, FilePathName
End Sub
Thanks!!
 

The following macro will do the following...
1) Check to make sure that the path in E1 is a valid one.
2) Check whether the folder in A1 already exists within the directory specified in E1.
3) If a folder does not already exist, one is created, and the images are exported into the newly created folder.
4) If a folder already exists, the user is advised, and the procedure ends.
Option Explicit
Sub ExportPictures()
Dim oShape As Shape
Dim oChrtObj As ChartObject
Dim sPath As String
Dim sFolder As String
Dim sPathAndFolder As String
Dim sErrMsg As String
Dim PicCnt As Long
If TypeName(ActiveSheet) <> "Worksheet" Then Exit Sub
On Error GoTo ErrHandler
Application.ScreenUpdating = False
sPath = Range("E1").Value
sFolder = Range("A1").Value
If Len(Dir(sPath, vbDirectory)) > 0 Then
If Right(sPath, 1) <> "\" Then sPath = sPath & "\"
Else
sErrMsg = "The specified path is invalid."
GoTo ErrHandler
End If
sPathAndFolder = sPath & sFolder
If Len(Dir(sPathAndFolder, vbDirectory)) = 0 Then
MkDir sPathAndFolder
Else
sErrMsg = "A folder called '" & sFolder & "' already exists."
GoTo ErrHandler
End If
PicCnt = 0
With ActiveSheet.ChartObjects.Add(0, 0, 250, 250)
.Border.LineStyle = 0
For Each oShape In ActiveSheet.Shapes
If oShape.Type = msoPicture Then
If Not Intersect(oShape.TopLeftCell, Columns("C")) Is Nothing Then
PicCnt = PicCnt + 1
oShape.Copy
With .Chart
With .ChartArea
.Width = oShape.Width + 2
.Height = oShape.Height + 2
End With
.Paste
.Export Filename:=sPathAndFolder & "\" & "Image " & PicCnt & ".jpg", FilterName:="jpg"
.Pictures(1).Delete
End With
End If
End If
Next oShape
.Delete
End With
MsgBox "Images exported: " & PicCnt, vbInformation
ExitTheSub:
Application.ScreenUpdating = True
Set oShape = Nothing
Set oChrtObj = Nothing
Exit Sub
ErrHandler:
If Len(sErrMsg) > 0 Then
MsgBox sErrMsg, vbInformation, "Unable to Continue"
GoTo ExitTheSub
Else
If Err <> 0 Then
MsgBox "Error " & Err.Number & ": " & Err.Description, vbCritical, "Error"
Resume ExitTheSub
End If
End If
End Sub
Hope this helps!
Domenic Tamburino Microsoft MVP - Excel xl-central.com - "For Your Microsoft Excel Solutions"

Similar Messages

  • I am unable to save images from google! Tried turning I-pad off then back on, no avail!

    I need help. I am unable to download/save images from google. I did turn off my I-pad and restart it. Still the same! What next?

    How are you trying?
    Are the images copyrighted and blocked from download?

  • Write permission error message when I try to 'save image' from elements 12 raw camera to main editing section?

    I get a 'write permission error' message when I try to 'save image' from Raw Camera sector to the main editing section of Elements 12. How can I overcome this problem?

    Well, first of all Save Image doesn't have anything to do with moving a raw file into the regular editor. That's the DNG converter. Evidently you are trying to create a dng file in a place where you don't have permission to write. Take a look at the location and change it to someplace where you can write. An example would be opening a file that's on a disc and trying to save back to that disc.
    But you should still be clicking the Open button instead of the Save Image button if you want to do anything other than make a DNG file.

  • Cannot save images from web on ipod touch 4 after ios 6 update

    After downloading ios 6 to my ipod pod touch 4th gen, I can no longer save images from the web to my camera roll. Please help!

    It works fine on my iPhone 4S
    Try the following:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Setings>Safari and Clear History and Clear Cookies and Data
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.

  • E61i -- HOW TO SAVE IMAGES FROM WEBSITE WHILE BROW...

    ANYBODY KNOWS HOW TO SAVE IMAGES FROM WEBSITE WHILE BROWSING IN E61i ???
    ABDULLAH SHAHID SHEIKH
    IMANGROUP, IMAN ROAD, NOORPUR, ALI BLOCK, MUSLIM TOWN, FAISALABAD, PAKISTAN.
    TEL. 0092418782792-93
    CELL. 00923008651424

    which version should i use ,, i mean suitable for my E61i,,, the opera mini or the opera mobile????
    is opera mini can save the images as well???
    25-Aug-200702:43 PM
    iantaylor27 wrote:
    Hi
    If you use opera mobile, it aloows saving of images to memory card etc
    www.opera.com
    ABDULLAH SHAHID SHEIKH
    IMANGROUP, IMAN ROAD, NOORPUR, ALI BLOCK, MUSLIM TOWN, FAISALABAD, PAKISTAN.
    TEL. 0092418782792-93
    CELL. 00923008651424

  • Cant save images from goggle to ipad  any more what am I doing wrong pls

    CAnt save image from goggle to ipad any more keeps saying save image failed what am I doing wrong pls

    If by "goggle" you mean the Google Chrome browser, then make sure its allowed to use the Camera Roll under Settings->Privacy->Photos, and make sure Chrome is turned on there.
    If that's not it perhaps explaining in a bit more detail what you are doing, and what happens when you try to save a picture?

  • Used to be able to save images from webpages but now with IOS 5, I can only save to reading list?

    Used to be able to save images from webpages but now with IOS 5, I can only save to reading list even when viewing a page whose images I could save as an image when using the previous OS.

    Are you using the YouTube widget in iWeb?  If so it doesn't work any more. Not since MobileMe was discontinued.
    You need to get the full embed code from YouTube and use the standard HTML snippet.
    OT

  • Would there happen to be a way so save images from not one, but multiple tabs in firefox instead of clicking through every single tab? Thanks.

    Usually when I'm browsing through random photos, either for work or for leisure, I always middle click them to open a new tab. So again, is there a way to save images from multiple tabs without cycling through each tab, right-clicking, deleting that tab then going to the next? Help is much appreciated.

    An alternative to middle clicking all the image links is just to use the [https://addons.mozilla.org/en-US/firefox/addon/201/ DownThemAll] extension with its [https://addons.mozilla.org/en-US/firefox/addon/12577/ anti-container] companion to choose the images you want to download from the original page of random photos.

  • 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

  • How do I save images from Finder to iPhoto?, How do I save images from Finder to iPhoto?

    Hi. How do I save my images from Finder into iPhoto? Every time I try nothing happens accept that the images keep dublicating themselves in Finder! On the verge of throwing the new Computer out of the window.
    I dont know why they say that mac is easy......
    Thanks

    File -> Import to Library
    Drag to the iPhoto Window
    Drag to the iPhoto icon.
    Every time I try nothing happens accept that the images keep dublicating themselves in Finder
    Where do you see this happen?

  • How to play/record at same time and save image from video

    i started working on a project and that made my life hell although it was so simple. reason was that i couldnt find small/simple code to understand problems and no proper documents. . finally i have done that. and here is the code (without much complex code of interface). it shows vidoe, records a small part of it at start and takes a snapshot (no buttons or events involved). hope it might help someone starting to learn JMF.
    import java.io.*;
    import java.awt.*;
    import java.net.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.media.*;
    import javax.media.rtp.*;
    import javax.media.rtp.event.*;
    import javax.media.rtp.rtcp.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.format.AudioFormat;
    import javax.media.format.VideoFormat;
    import javax.media.Format;
    import javax.media.format.FormatChangeEvent;
    import javax.media.control.BufferControl;
    import javax.media.control.FrameGrabbingControl;
    import javax.imageio.ImageIO;
    import java.util.Date;
    import javax.media.util.BufferToImage;
    import java.awt.image.BufferedImage;
    * AVReceive2 to receive RTP transmission using the new RTP API.
    public class AVReceive2 implements ReceiveStreamListener, SessionListener,
    ControllerListener
    public static DataSource ds2, ds, ds3;
    String sessions[] = null;
    RTPManager mgrs[] = null;
    Vector playerWindows = null;
    boolean dataReceived = false;
    Object dataSync = new Object();
    public AVReceive2(String sessions[]) {
    this.sessions = sessions;
    public static DataSource getData() {
    return ds;
    protected boolean initialize() {
    try {
    InetAddress ipAddr;
    SessionAddress localAddr = new SessionAddress();
    SessionAddress destAddr;
    mgrs = new RTPManager[sessions.length];
    playerWindows = new Vector();
    SessionLabel session;
    // Open the RTP sessions.
    for (int i = 0; i < sessions.length; i++) {
    // Parse the session addresses.
    try {
    session = new SessionLabel(sessions);
    } catch (IllegalArgumentException e) {
    System.err.println("Failed to parse the session address given: " + sessions[i]);
    return false;
    System.err.println(" - Open RTP session for: addr: " + session.addr + " port: " + session.port + " ttl: " + session.ttl);
    mgrs[i] = (RTPManager) RTPManager.newInstance();
    mgrs[i].addSessionListener(this);
    mgrs[i].addReceiveStreamListener(this);
    ipAddr = InetAddress.getByName(session.addr);
    if( ipAddr.isMulticastAddress()) {
    // local and remote address pairs are identical:
    localAddr= new SessionAddress( ipAddr,
    session.port,
    session.ttl);
    destAddr = new SessionAddress( ipAddr,
    session.port,
    session.ttl);
    } else {
    localAddr= new SessionAddress( InetAddress.getLocalHost(),
    session.port);
    destAddr = new SessionAddress( ipAddr, session.port);
    mgrs[i].initialize( localAddr);
    // You can try out some other buffer size to see
    // if you can get better smoothness.
    BufferControl bc = (BufferControl)mgrs[i].getControl("javax.media.control.BufferControl");
    if (bc != null)
    bc.setBufferLength(350);
    mgrs[i].addTarget(destAddr);
    } catch (Exception e){
    System.err.println("Cannot create the RTP Session: " + e.getMessage());
    return false;
    // Wait for data to arrive before moving on.
    long then = System.currentTimeMillis();
    long waitingPeriod = 30000; // wait for a maximum of 30 secs.
    try{
    synchronized (dataSync) {
    while (!dataReceived &&
    System.currentTimeMillis() - then < waitingPeriod) {
    if (!dataReceived)
    System.err.println(" - Waiting for RTP data to arrive...");
    dataSync.wait(1000);
    } catch (Exception e) {}
    if (!dataReceived) {
    System.err.println("No RTP data was received.");
    close();
    return false;
    return true;
    public boolean isDone() {
    //return playerWindows.size() == 0;
    return false;
    * Close the players and the session managers.
    protected void close() {
    for (int i = 0; i < playerWindows.size(); i++) {
    try {
    ((PlayerWindow)playerWindows.elementAt(i)).close();
    } catch (Exception e) {}
    playerWindows.removeAllElements();
    // close the RTP session.
    for (int i = 0; i < mgrs.length; i++) {
    if (mgrs[i] != null) {
    mgrs[i].removeTargets( "Closing session from AVReceive2");
    mgrs[i].dispose();
    mgrs[i] = null;
    PlayerWindow find(Player p) {
    for (int i = 0; i < playerWindows.size(); i++) {
    PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
    if (pw.player == p)
    return pw;
    return null;
    PlayerWindow find(ReceiveStream strm) {
    for (int i = 0; i < playerWindows.size(); i++) {
    PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
    if (pw.stream == strm)
    return pw;
    return null;
    * SessionListener.
    public synchronized void update(SessionEvent evt) {
    if (evt instanceof NewParticipantEvent) {
    Participant p = ((NewParticipantEvent)evt).getParticipant();
    System.err.println(" - A new participant had just joined: " + p.getCNAME());
    * ReceiveStreamListener
    public synchronized void update( ReceiveStreamEvent evt) {
    RTPManager mgr = (RTPManager)evt.getSource();
    Participant participant = evt.getParticipant();     // could be null.
    ReceiveStream stream = evt.getReceiveStream(); // could be null.
    if (evt instanceof RemotePayloadChangeEvent) {
    System.err.println(" - Received an RTP PayloadChangeEvent.");
    System.err.println("Sorry, cannot handle payload change.");
    System.exit(0);
    else if (evt instanceof NewReceiveStreamEvent) {
    try {
    stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
    //DataSource
    ds2 = stream.getDataSource(); // this original cant be used now
    // ds is used to play video
    ds = Manager.createCloneableDataSource(ds2);
    // ds3 is used to record video
    ds3 = ((SourceCloneable)ds).createClone();
    // Find out the formats.
    RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
    if (ctl != null){
    System.err.println(" - Recevied new RTP stream: " + ctl.getFormat());
    } else
    System.err.println(" - Recevied new RTP stream");
    if (participant == null)
    System.err.println(" The sender of this stream had yet to be identified.");
    else {
    System.err.println(" The stream comes from: " + participant.getCNAME());
    // create a player by passing datasource to the Media Manager
    Player p = javax.media.Manager.createPlayer(ds);
    if (p == null)
    return;
    p.addControllerListener(this);
    p.realize();
    PlayerWindow pw = new PlayerWindow(p, stream);
    playerWindows.addElement(pw);
    // Notify intialize() that a new stream had arrived.
    synchronized (dataSync) {
    dataReceived = true;
    dataSync.notifyAll();
    } catch (Exception e) {
    e.printStackTrace();
    return;
    else if (evt instanceof StreamMappedEvent) {
    if (stream != null && stream.getDataSource() != null) {
    DataSource ds = stream.getDataSource();
    // Find out the formats.
    RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
    System.err.println(" - The previously unidentified stream ");
    if (ctl != null)
    System.err.println(" " + ctl.getFormat());
    System.err.println(" had now been identified as sent by: " + participant.getCNAME());
    else if (evt instanceof ByeEvent) {
    System.err.println(" - Got \"bye\" from: " + participant.getCNAME());
    PlayerWindow pw = find(stream);
    if (pw != null) {
    pw.close();
    playerWindows.removeElement(pw);
    * ControllerListener for the Players.
    public synchronized void controllerUpdate(ControllerEvent ce) {
    Player p = (Player)ce.getSourceController();
    if (p == null)
    return;
    // Get this when the internal players are realized.
    if (ce instanceof RealizeCompleteEvent) {
    PlayerWindow pw = find(p);
    if (pw == null) {
    // Some strange happened.
    System.err.println("Internal error!");
    System.exit(-1);
    pw.initialize();
    pw.setVisible(true);
    p.start();
    try {
    // make it wait so that video can start otherwise image will be null. u must call this method with a button
    Thread.sleep(2500);
    catch (Exception e) {
    e.printStackTrace();
    // Grab a frame from the capture device
    FrameGrabbingControl frameGrabber = (FrameGrabbingControl) p.getControl(
    "javax.media.control.FrameGrabbingControl");
    Buffer buf = frameGrabber.grabFrame();
    // Convert frame to an buffered image so it can be processed and saved
    Image img = (new BufferToImage( (VideoFormat) buf.getFormat()).
    createImage(buf));
    BufferedImage buffImg = new BufferedImage(img.getWidth(null),
    img.getHeight(null),
    BufferedImage.TYPE_INT_RGB);
    Graphics2D g = buffImg.createGraphics();
    g.drawImage(img, null, null);
    // Overlay curent time on image
    g.setColor(Color.RED);
    g.setFont(new Font("Verdana", Font.BOLD, 12));
    g.drawString( (new Date()).toString(), 10, 25);
    try { // Save image to disk as PNG
    ImageIO.write(buffImg, "jpeg", new File("c:\\webcam.jpg"));
    catch (Exception e) {
    e.printStackTrace();
    // this will record the video for a few seconds. this should also be called properly by menu or buttons
    record(ds3);
    if (ce instanceof ControllerErrorEvent) {
    p.removeControllerListener(this);
    PlayerWindow pw = find(p);
    if (pw != null) {
    pw.close();
    playerWindows.removeElement(pw);
    System.err.println("AVReceive2 internal error: " + ce);
    * A utility class to parse the session addresses.
    class SessionLabel {
    public String addr = null;
    public int port;
    public int ttl = 1;
    SessionLabel(String session) throws IllegalArgumentException {
    int off;
    String portStr = null, ttlStr = null;
    if (session != null && session.length() > 0) {
    while (session.length() > 1 && session.charAt(0) == '/')
    session = session.substring(1);
    // Now see if there's a addr specified.
    off = session.indexOf('/');
    if (off == -1) {
    if (!session.equals(""))
    addr = session;
    } else {
    addr = session.substring(0, off);
    session = session.substring(off + 1);
    // Now see if there's a port specified
    off = session.indexOf('/');
    if (off == -1) {
    if (!session.equals(""))
    portStr = session;
    } else {
    portStr = session.substring(0, off);
    session = session.substring(off + 1);
    // Now see if there's a ttl specified
    off = session.indexOf('/');
    if (off == -1) {
    if (!session.equals(""))
    ttlStr = session;
    } else {
    ttlStr = session.substring(0, off);
    if (addr == null)
    throw new IllegalArgumentException();
    if (portStr != null) {
    try {
    Integer integer = Integer.valueOf(portStr);
    if (integer != null)
    port = integer.intValue();
    } catch (Throwable t) {
    throw new IllegalArgumentException();
    } else
    throw new IllegalArgumentException();
    if (ttlStr != null) {
    try {
    Integer integer = Integer.valueOf(ttlStr);
    if (integer != null)
    ttl = integer.intValue();
    } catch (Throwable t) {
    throw new IllegalArgumentException();
    * GUI classes for the Player.
    class PlayerWindow extends Frame {
    Player player;
    ReceiveStream stream;
    PlayerWindow(Player p, ReceiveStream strm) {
    player = p;
    stream = strm;
    public void initialize() {
    add(new PlayerPanel(player));
    public void close() {
    player.close();
    setVisible(false);
    dispose();
    public void addNotify() {
    super.addNotify();
    pack();
    * GUI classes for the Player.
    class PlayerPanel extends Panel {
    Component vc, cc;
    PlayerPanel(Player p) {
    setLayout(new BorderLayout());
    if ((vc = p.getVisualComponent()) != null)
    add("Center", vc);
    if ((cc = p.getControlPanelComponent()) != null)
    add("South", cc);
    public Dimension getPreferredSize() {
    int w = 0, h = 0;
    if (vc != null) {
    Dimension size = vc.getPreferredSize();
    w = size.width;
    h = size.height;
    if (cc != null) {
    Dimension size = cc.getPreferredSize();
    if (w == 0)
    w = size.width;
    h += size.height;
    if (w < 160)
    w = 160;
    return new Dimension(w, h);
    public void record(DataSource ds) {
    Format formats[] = new Format[1];
    formats[0] = new VideoFormat(VideoFormat.CINEPAK);
    FileTypeDescriptor outputType =
    new FileTypeDescriptor("video.x_msvideo");
    Processor p = null;
    try {
    p = Manager.createRealizedProcessor(new ProcessorModel(ds,formats,
    outputType));
    } catch (IOException e) {
    e.printStackTrace();
    } catch (NoProcessorException e) {
    e.printStackTrace();
    } catch (CannotRealizeException e) {
    e.printStackTrace();
    // get the output of the processor
    DataSource source = p.getDataOutput();
    // create a File protocol MediaLocator with the location
    // of the file to
    // which bits are to be written
    MediaLocator dest = new MediaLocator("file://vvv.mpeg");
    // create a datasink to do the file writing & open the
    // sink to make sure
    // we can write to it.
    DataSink filewriter = null;
    try {
    filewriter = Manager.createDataSink(source, dest);
    filewriter.open();
    } catch (NoDataSinkException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    } catch (SecurityException e) {
    e.printStackTrace();
    // now start the filewriter and processor
    try {
    filewriter.start();
    } catch (IOException e) {
    e.printStackTrace();
    p.start();
    try {
    Thread.sleep(10000);
    }catch(Exception e) { }
    p.close();
    filewriter.close();
    // stop and close the processor when done capturing...
    // close the datasink when EndOfStream event is received...
    public static void main(String argv[]) {
    //     if (argv.length == 0)
    //     prUsage();
    String[] a = new String[1];
    a[0] = ("192.168.0.45/4002");
    AVReceive2 avReceive = new AVReceive2(a);
    if (!avReceive.initialize()) {
    System.err.println("Failed to initialize the sessions.");
    System.exit(-1);
    // Check to see if AVReceive2 is done.
    try {
    while (!avReceive.isDone())
    Thread.sleep(1000);
    } catch (Exception e) {}
    System.err.println("Exiting AVReceive2");
    static void prUsage() {
    System.err.println("Usage: AVReceive2 <session> <session> ...");
    System.err.println(" <session>: <address>/<port>/<ttl>");
    //System.exit(0);
    }// end of AVReceive2
    so here the code. all messed up. coz i have just completed it and havent worked on interface or formatting this code properly (didnt have much time). but hope it will help. ask me if u have any questions. dont want others to have those basic problems that i had to face.

    u did a good effort for the JMF beginners i appreciate that....thanks i lot....i need you help in a project in
    which i have to connect to a d-link 950G IP camera and process that
    mpeg-4 stream (i know there are some problems in JMF and mpeg4) and show it over applet of JFrame.
    IP is 172.25.35.22
    Edited by: alchemist on Jul 16, 2008 6:09 AM

  • Why can't I right-click to save images from webpages with FF 3.6.13?

    Ever since I updated my FF version to 3.6.13, I find I have trouble saving images from websites. And not just on specific websites, but everywhere (and they aren't protected or anything from saving). In the past I could right-click on them and do "save as..." Now the only option I have is "save link as..." Whenever I click on this, nothing at all happens. Is this a bug with version 3.6.13? It's really annoying.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    There are other things that need attention:
    Your above posted system details show multiple Java Console extensions.<br />
    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension, you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    Disable the Java Quick Starter extension: Tools -> Add-ons -> Extensions<br />
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)
    See http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0

  • Can no longer save image from Safari??

    Since iOS 6 upgrade, the "save image" feature from safari is gone!  There's a bunch of other options (message, email, copy, etc...), but no way to save an image I find online into my camera roll.

    Stu-art wrote:
    Everything is inconsistent and I'm running out of time before I need to get everything working and get to the airport! Any help would be appreciated. Thanks.
    Use another browser.
    Have you tried posting in the Safari forum area?

  • Unable to save images from photoshop

    Using the external editor linked to Photoshop CC 2014, images from Aperture show up in Photoshop for editing.  But after making changes, and saving the file, Aperture doesn't get updated for any of the changes I made in PS. Any suggestions on how to get edited images back into Aperture? (I am using Mac version 10.9.5 and Aperture 3.5.1)

    Your assumption is correct.
    The workflow is:
    Select Image in Aperture for external editing.
    Send Image to external editor via one version of Aperture's "Edit with NameOfExternalEditor" command.
    Aperture creates a new Original based on the selected Image and opens specified external editor with the Original loaded.
    You make changes to this file in the external editor.
    You close this file and select "Save Changes" (or similar) when prompted.
    You return to Aperture and find an Image based on the newly-created Original selected.  This Image shows the changes you made in the external editor.  It is badged with Aperture "Edited externally" badge.
    Let's check a couple of things:
    - Are you showing all Images in the Aperture Browser?
    - Are there any externally-edited Images in the Project after you have completed editing in Photoshop?
    For the first, clear any filter you have set for the Browser by clicking the dark-on-light drop-down magnifying glass icon _in_ the Browser search field and selecting "Show All".
    For the second, filter for externally edited Images by clicking the dark-on-light magnifying glass icon _next to_ the Browser search field and setting a filter with the Rule "File Type" set to "is", "externally edited".
    Report back.

  • Can't save images from email

    When I get an email with an image in it, if I click on the image, all of these options are greyed out: Quick Look, Save Image, Assign to Contact, Copy and Print. How do I fix that? I want to save images to my camera roll that people send me.

    I can send if I use:
    // Create your new message part
    BodyPart messageBodyPart = new MimeBodyPart();
    String htmlText = "<H1>Hello</H1>" +
    "<img src=\"cid:memememe\">";
    messageBodyPart.setContent(htmlText, "text/html");
    // Create a related multi-part to combine the parts
    MimeMultipart multipart = new MimeMultipart("related");
    multipart.addBodyPart(messageBodyPart);
    // Create part for the image
    messageBodyPart = new MimeBodyPart();
    // Fetch the image and associate to part
    DataSource fds = new FileDataSource(file);
    messageBodyPart.setDataHandler(new DataHandler(fds));
    messageBodyPart.setHeader("Content-ID","<memememe>");
    // Add part to multi-part
    multipart.addBodyPart(messageBodyPart);
    but if I try to read message (html and image inside it) sended from Outlook? i can't find images.
    messageBodyPart.getHeader("Content-ID");
    returned null.

Maybe you are looking for

  • My iMessage wont send photos on my ipod

    I try to send a photo through iMessage but it keeps coming back with a red exclimation mark and says not delivered. What do i do?

  • In OS 10.6 and Safari 6, http: and https: are no longer displayed.

    In OS 10.6 and Safari 6, http: and https: are no longer displayed. Can this behaviour be restored?? In 10.5.8 with Safari 5.x some sites will show up as https: while the same site in Safari 6 may, or may not, show the grey or green box https: box. Is

  • Set html components JSF

    Hi there, I m using JSF but in some places there are simple html components like <select> menu. I want to set HTML components when loading page dynamically on the basis of student record. Can someone give me a hint how I can set html components using

  • ADF View Accessor Validation with Bind Variable

    Hi I need to solve the following requirement using a view accessors and bind variables; 1. User can select a value for a attribute from LOV which is unfiltered. 2. User can manually edit code into the same attribute as in 1 above, which needs to be v

  • Oracle bi presentation service is not getting started

    hi All, for this i checked the sawkig0.log file (under OracleBIdata\web\log ) i got the following details: Type: Information Severity: 30 Time: Tue May 20 10:32:15 2008 File: project/sawserver/sawserver.cpp Line: 386 Properties: ThreadID-812 Location