How to display Image from File Path Name without using BLOB
william_marcelinus
Member Posts: 34
Excuse me, im new in this forum and learning NAV's 
Here is my problem,
It seems i cant display any picture from a path name eg: C:\test.jpg to a specific field in a page. ive been try using some
InStream and Declare it as BigText, but i didnt found any type of variable to load an InStream data to a field. heres my latest try :
IF NOT ISSERVICETIER THEN
EXIT;
FileToDownload := 'C:\try.bmp';
FileVar.OPEN(FileToDownload);
FileVar.CREATEINSTREAM(IStream);
BStr.READ(IStream);
FileVar.Close;
when im try to use BStr as Sourceexpr its just give a text ](*,) , how can i display the picture from InStream without using XML DOM or inserting to record as BLOB, or its not possible for me to do this? thanks for your reply. [-o<
Here is my problem,
It seems i cant display any picture from a path name eg: C:\test.jpg to a specific field in a page. ive been try using some
InStream and Declare it as BigText, but i didnt found any type of variable to load an InStream data to a field. heres my latest try :
IF NOT ISSERVICETIER THEN
EXIT;
FileToDownload := 'C:\try.bmp';
FileVar.OPEN(FileToDownload);
FileVar.CREATEINSTREAM(IStream);
BStr.READ(IStream);
FileVar.Close;
when im try to use BStr as Sourceexpr its just give a text ](*,) , how can i display the picture from InStream without using XML DOM or inserting to record as BLOB, or its not possible for me to do this? thanks for your reply. [-o<
0
Answers
-
You do not need to "insert" it into BLOB. It is enough only to stream it through temporary blob (table TempBLOB is already part of the standard DB). Read the picture into it and display it where you need, without inserting it into the table...0
-
kine wrote:You do not need to "insert" it into BLOB. It is enough only to stream it through temporary blob (table TempBLOB is already part of the standard DB). Read the picture into it and display it where you need, without inserting it into the table...
Thanks For Reply Kine,
Ive Solved this problem using InStream and OutStream and keep the temporary image in CREATEOUTSTREAM function, and yes i need that temporary BLOB field, and successfully i dont need to keep or store any record in that field AT ALL \:D/ and by the way i've
solved this by myself although im newbie in nav
and thanks for reply kine hope we can share more knowledge again
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
