Retrieving content using url in navision

rozema
Member Posts: 15
Hello,
I need to import data (jpg) in Navision.
This is not a problem but.....
..... I have to get the data using a url. (The data is stored on a public site, I only have the availability of the url).
I assume I have to use Automation controls / perhaps XML. Tried a lot, but I cannot make it work.
Anyone?
I need to import data (jpg) in Navision.
This is not a problem but.....
..... I have to get the data using a url. (The data is stored on a public site, I only have the availability of the url).
I assume I have to use Automation controls / perhaps XML. Tried a lot, but I cannot make it work.
Anyone?
0
Comments
-
Did you try with the IXMLHTTPRequest interface in MSXML?Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
Jan,
Could you perhaps be a little more specific? I tried the MS XMLHTTP40 Aut. Control. - could not make it work. But then again - I do not use this on a daily basis.....
Do you have an example perhaps?
Thanks, Peter0 -
I'm afraid I don't have an example, but nor can I think of a reason why it wouldn't work. Did you receive an error message? Did the request not return any data, or in a form that was not useful to you?Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
Hello,
I'm not sure if you mean something like this, it works for me..------------------------------------------------------------- mxh - Automation - 'Microsoft XML, v4.0'.XMLHTTP40 Url - Text - 1000 is - InStream os - OutStream var - Variant ci - Record - Company Information mbt - BigText ------------------------------------------------------------- CREATE(mxh); mxh.open('GET','http://internet.ls-la.net/pictures/images/Computer/Microsoft-XP-sucks.jpg',FALSE); Mxh.send(var); var := Mxh.responseStream; CLEAR(mxh); is := var; mbt.READ(is); ci.Picture.CREATEOUTSTREAM(os); mbt.WRITE(os); ci.Picture.EXPORT('c:\picture.jpeg',FALSE);
Let me know if this is what you mean..Met vriendelijke groet, best regards,
Rvduuren0 -
=D> =D> =D> FB!!!!! =D> =D> =D>
Thanks.0 -
Hi to all,
I am having almost the same problem. I want to download a XML file from a specified URL and save it to HDD. Is there an easiest alternative solution or I have to follow a scenario like this one?
Thank you in advance...Always Look On The Bright Side Of Life...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions