web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Business Central forum

Browse & save image/File to a particular location in D365BC

(0) ShareShare
ReportReport
Posted on by 425

Hi Everyone,

How can we browse & save image/File to a particular location in D365BC.

Thanks in Advance.

Categories:
I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
  • Manish Ratan Profile Picture
    425 on at

    Thanks, will look into this and will update you.

  • Manish Ratan Profile Picture
    425 on at

    I used the below code, but didn't got any result:

    1.

    UploadIntoStream('Import Image', "XYZ Text", 'All Files (*.*)|*.*', "XYZ Text", NVInStream);

    2.

    UploadIntoStream('Import Image', '', '', FileName, NVInStream);

    Variables:

    Name: NVInStream

    DataType: Instream

    Name:"XYZ Text"

    DataType: Text

    Name:FileName

    DataType: Text

  • Manish Ratan Profile Picture
    425 on at

    With above code, i can select image file into the field. But unable to store/Save this image file to a desired location (E.g. C:\).

    Is there any function to copy image file from "Field" to a desired location (E.g. C:\).

  • Manish Ratan Profile Picture
    425 on at

    Need to know, how to store/Save this image file to a desired location.

    Thanks.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You don't have access to local file system. You can permit to your user to download the file and then save it to a local file with DownloadFromStream.

  • Manish Ratan Profile Picture
    425 on at

    Can we use FTP Server, instead of Local system.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    It could be possible by calling a custom API that does that.

  • Manish Ratan Profile Picture
    425 on at

    Can you please suggest more on these custom API, as i am unable get it.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    There's no a native way to do FTP access from BC because there's no file system here. Do you want to access a local FTP server from an online BC?

    To do so (just and idea) you can call a custom web service from BC that in turns performs the FTP access.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans