How to save picture in SERVER ---- B1_SHR Folder

Hi Experts,
                  In my user form i have added a new picture box & browse button,using the browse button iam uploading the picture into my picturebox & saving the path in database,again in form load mode again my picture is getting loaded....everything is fine.
But only problem is when i select the jpg file from desktop it's should be default save into below  SERVER path
C:\Program Files\SAP\SAP Business One\B1_SHR\MyPicture1.jpg
here's my present coding
Sub ShowFolderBrowser()
        Dim MyTest As New OpenFileDialog
        Dim strMdbFilePath As String
        Dim MyProcs() As Process
        MyProcs = Process.GetProcessesByName("SAP Business One")
        If MyProcs.Length  0 Then
            For i As Integer = 0 To MyProcs.Length - 1
                Dim MyWindow As New ClsWindowWrapper(MyProcs(i).MainWindowHandle)
                'MyTest.Filter = "Excel files (*.xls)|*.xls|Document files (*.doc)|*.doc"
                If MyTest.ShowDialog(MyWindow) = DialogResult.OK Then
                    If objForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE Or objForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Then
                         'strMdbFilePath = MyTest.FileName
                    End If
                    Dim objPicture As SAPbouiCOM.PictureBox
                    objPicture = objForm.Items.Item("EmpPic").Specific
                    objPicture.Picture = MyTest.FileName
                    objForm.Refresh()
end if
end sub
Can Anybody suggest me some ideas to solve this problem
Thanks,
Shangai

Hello,
>But only problem is when i select the jpg file from desktop it's should be default save into below SERVER path
Attachment patch and bitmap pacth can be customized in
Administration\System init...\General Settings\Path folder.
These path values are avaiable in SDK, properties of company object.
In this case at least the BitMapPath should be set to
SERVERNAME\B1_SHR\
You should copy it, by io.File.Copy command, and you can determine the system attachment pacth as ocompany.AttachMentPath or ocompany. BitMapPath
This is the answer for you question.
Regards,
J.

Similar Messages

  • How to save picture from an iPad on someone else computer

    how to save picture from an iPad on someone else computer.

    Why don't you save pictures to Dropbox?
    You don't have to save it on someone's computer
    http://i1224.photobucket.com/albums/ee374/Diavonex/b90c9d4d.jpg

  • How to save backup in a target folder

    I am trying to figure out how to save a backup to a folder when I backup files like G:/Data Backup instead of creating a folder with a random name. I have a WD My passport portable hard drive using WD smartware.   With backups will it save to that target location and replace just files that have changed?

    You can't. All you can do is move the top level folder of the save from the root of the drive to somewhere a bit deeper down a file tree, e.g. your G:/Data Backup folder. But what will then happen is the WDSmartware.swstor folder will be created within that folder, and the device and drive sub-folders within that. It's done that way as Smartware is actually designed to work with NAS drives to save backups from multiple devices and multiple drives within those devices. The "random name" you describe isn't actually random, it's the ID of the individual drive(s) within the device you're backing up. For your case you might want to look at the new WD Backup Software, which may meet your needs a little better. I haven't tried it (as I need proper NAS backup, hence use Smartware), but from the description it's better suited to backups onto portable drives like your MP.

  • How to save pictures from my iphone to my laptop?

    I dont know how to save pictures from my iphone to my laptop..

    Hi, do you know if this task can be programed to be executed automatically each time you conect your iphone to the laptop just like he digital cameras do?
    Regards

  • How to save file on server folder

    hi
    i was trying to save file in my specify folder path.
    but it cann't save on than location.
    if i will not specify path then it directly save file on "c:program files\tomcat5.7\bin\mytextfile.txt"
    if i will specify perfect path "c://systemfile//mytextfile.txt"
    it saves on that location.
    if i will define path as ".//www//systemfile//mytextfile.txt"
    "//www//systemfile//mytextfile.txt"
    "//systemfile//mytextfile.txt"
    ".//mytextfile.txt" it cann't save file on location

    i know how to upload file .
    i need to save file on my web folder " /www/file/ xxxx.txt"
    how i will save it .over ther in my program i will specify location "c:/Program file/file/xxxxxx.txt"

  • Save image to Server in folder from iframe tag

    I am using iframe tag to display image. Also there is a Save Image Button on page. I want that when user rotate the image inside iframe, then this rotated image should save into server in folder by click of a button.
    How to do this...plz help

    Hi Rajnegi,
    In my opinion, this thread is related to ASP.NET forum. So please post thread on that forum for more effective response. Thank you for understanding. Please refer to the following link.
    http://forums.asp.net/.
    To save your time, the following way is a popular way to upload images to server. You can put the code in your iframe. Please see the page below:
    http://www.aspsnippets.com/Articles/Multiple-File-Uploads-Gmail-Style-using-JQuery-and-ASP.Net.aspx.
    Hope useful.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to save picture of fish hook onto a transparent background

    hi there, need help to try to save picture of fish hook onto a transparent background so I can use to print for a logo, not having much joy at present. Any advice welcomed, G

    Scott, i have taken the picture from internet - coices are (jpeg) or bmp. The site is:- and it is the middle picture. http://www.google.co.uk/search?hl=en&rlz=1T4PBEA_en-GBGB225GB238&q=fish+hooks+picture+ima ges&meta=
    I am then opening up image in illustrator cs2 and tring to work on it and then save as tranparent ai file. Hope this is a bit clearer....thanks G

  • How to save file from server to client machine

    Hi,
    By using POI library i'm writing values to the existing excel sheet which is available in server. After i written values to the excel, i want to save the same file to the client machine.
    How to achieve this.
    I googled about this, but still i didn't get any clear idea.
    Thanks in advance,
    SAN

    Sameera,
    No, i can't understand what is the meaning of the following code:
    public void doDownload(FacesContext facesContext, OutputStream outputStream) {
    // write the neccessary code to get the download data from the Model
    String data = getDownloadData();
    // save to the output stream
    try {
    OutputStreamWriter writer = new OutputStreamWriter(outputStream,"UTF-8");
    writer.write(data);
    writer.close();
    outputStream.close();
    } catch (IOException e) {
    // handle I/O exceptions
    can you please explain this code little more.
    Edited by: san-717 on Feb 29, 2012 2:30 PM

  • How to save picture in a text to camera roll in ios7

    How do I save a picture that was text to me to camera roll in IOS7?

    tap on the picture and it should open in a new screen then hit the icon on the top right wiht the arrow pointing up
    then you'll get a bunch of option. 

  • How to save pdf files to a folder on my tablet?

    How do I save an edited pdf document to a folder on my 'desktop', where I can find it again?  I am using an android tablet.

    I am not sure what you mean by saving on the 'desktop'. Are you trying to share the file across devices?
    However, in case you want to save a file in a different folder in Adobe Reader for Android, you can go tap on the 'Documents' tab. On the top toolbar, you will see an 'Edit' option. Tap on it and select the file(s) you want to move. Now, on the top toolbar, you would see an icon which looks like a folder with an arrow. Tap on this and now you can enter the desired location where you want to save this file

  • How to save picture in a WORD doc as a jpg image?

    I have a WORD doc file where there is a picture that I want to crop and then save as a jpg file for further editing.  When I tried to open this doc file in PSE, I got an error message saying PSE could not open this type of file (doc).  But in WORD I am not able to save as a jpg. Thanks.

    Try saving your document as a web page (File>Save as Web Page)
    to your desktop and then inside the folder named after your document should be the
    picture file, which can be opened in photoshop elements.
    MTSTUNER

  • How to save picture name preset in Aperture

    Hey Aperture freaks,
    I do not find a way to store my individual name preset of the section picture import
    Can somebody give me a hint
    System : MacBookPro with 10.9.2 plus Aperture 3.5.1
    Background : had to reinstall my system by reloading all original software. With this you get the standard set-up for file naming in the picture import section. the archive recovery I have done and have all pictures and its working files back, but what is missing is the user surface setup of APERTURE, which I had before. This has been not stored in the recovery file
    What did I do wrong
    Thanks for the helps
    Best regards
    FJ
    n.b.: in the attachment I put a screenprint of the input section I am talking about

    but what is missing is the user surface setup of APERTURE, which I had before. This has been not stored in the recovery file
    How did you restore your home folder after you restored your system?
    The file naming presets and other presets you are looking for are stored in your user library in your home folder in the folder
    ~/Library/Application Support/Aperture/FileNamingPresets.plist
    Restore the files in this folder from your backup before you erased your drive, e.g. FileNamingPresets.plist
    You user library may still be hidden, as is the default in Mavericks: To open your hidden user library:
    Select the "Home" folder icon (the little house)  in the Finder's sidebar and press the key combination ⌘J to open the "view options".
    Enable "Show Library Folder".
    Then open the Home folder and open the Library folder inside and navigate to ~/Library/Application Support/Aperture
    -- Léonie

  • How to save pictures to a file outside of IPHOTO

    How you do you save photos to another file that isn't in Iphoto? I was trying to upload some photos to a webhosting site and I had the hardest time trying to find the library they were in. I ended up dragging the all to the desktop and renaming them.
    Is there an easier way to this? I did see the export feature..is that what I use and how do I do multiple photos?
    Thanks
    CC

    Not sure if this is what you're looking for but lets see if I cannot give you some idea.
    If you got to \User\yourname\Pictures\iPhoto Library\ Right click iPhoto Library and select Show Package Contents.
    In there, you will probably see 2 folders titled "Modified" and "Original"
    In those folders, you will see your pictures categorized into Years.
    Good luck. Hope thats what you were looking for.

  • How to save pictures with the config file "Write Key.vi"

    hi all,
    On my front panel I've few controls pictures containing photos (JPG type) . The user can select the photo he wants using the classic file dialog box.
    Usally I use the config files VI's to save the control values from one run to another one. In the config files VIs, I use the polymorphic "write Key.vi" wich accept only booean, I32, U32, path, and string dada type, but no picture !
    I've tried the "flatten to string" fonction (picture --> flatten to string --> writekey.vi) , no broken wire but the conversion is very very too long and to heavy (20Mo a key!).
    another way, would be to write in a xml file, I've also tried but I've always get the 1104 error: No end tag was found for an XML start/end tag pair.
    can someone help me.
    what is the best way for  retrieving controls pictures with photos

    Hi GerdW
    Many thanks for your quick answer. Always happy to get advises from fellow programmers.
    You suggest to use the "path" input of the "write key.vi" (configuration file utilities) to retrieve photos that a user would have selected in a previous run. Could be a good solution in a number of applications but what I would like to do is like in a excel or word file. Once a photo has been embeded in one xls file for ex., I find it back each time i open this xls file, even if the original photo's file has been deleted or if my application runs on another computer.
    xml file looks interesting for that purpose (i mean used as config file). I can easily store in a xml file a labview picture (like a colored rectangle e.g.) but when i try with a photo (wich is a also a picture) labview returns always the error 1104.
    How to fixe this error, or maybe  there is another way to store photos in a config file without passing through xml,
    kind regards.

  • How to save camera image in different folder (other than Camera Roll) in Ios?

    I am developing an App where I am taking pictures from the Camera but all the pictures get stored in the Gallery. I would like to store all the pictures taken in this app to be stored in a different folder so that when users view the pictures in the app, it should show only the pictures taken using the app. Currently, all the pictures of the Gallery are being displayed which I do not want.
    I want to create a folder, store camera pictures taken using the app in this folder then display all the images of the folder in the app.
    Any suggestions would be appreciated.
    Thanks in advance.

    Hi,
    try freshplanet/ANE-ImagePicker · GitHub.

Maybe you are looking for

  • Upgrade EHP4 in MAIN_IMPORT phase from last 3 days

    Hi, I am doing the Upgrade from EHP3 to EHP 4 by the saint. But the server has been in the main import phase from last 3 days and there is no error and no false log in the trans folder. But during the process SAP server has restarted once and the mac

  • How to make a magnifying glass link to a look up table ?

    Dear Friends, Hello. I am developing the accounting application of journal entry. In journal line, I use the image "magnifying glass" next to each chart field. When we click on the magnifying glass, it's supposed to come up a look up table( a chart a

  • Dynamic types with CL_ABAP_TYPEDESCR

    Hi, I have a problem. I want to read out the output_length of dynamic types to evaluate inputs. I do something like the code below. DATA type_ref      TYPE REF TO cl_abap_typedescr. DATA elem_descr TYPE REF TO cl_abap_elemdescr. DATA struc_descr TYPE

  • Ask a question About B1 appevent

    Hello! everybody My name is Solution In B1_SDK there is a appevent event(aet_shutdown),the event can touched off when I developed(debug) a solution ,but I created .ard and .exe install file ,after ADDON ,The event can't touched off ,WHY?             

  • WPF Binding XML in Oracle

    Hi,there,I'm using WPF Binding a xml file which stored in Oracle,My question is:is there a way to Bind XML to WPF control directly? If it has,do this way as useful as Bind a data instance? Thanks