Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27230

VS 2012 LINQ BINARY Manipulation with VB.NET

$
0
0
Hello!

I'd like some direction :confused: please in regard to LINQ and working with binary files.

There are many examples of how to handle Binary upload style ASP code, some of which that utilise LINQ, but not quite what I'd like to accomplish.

Basically, within a windows form, I would like to have a listview that acts as a drag&drop target for .PDF's, .DOC, and .MSG.

On form load it would go of to the SQL database, utilising LINQ and look for related binary files ( pdf,doc,msg) and display these as icons in the listview.
on selection of one of these, the appropriate associated application will launch with this file, maybe it reads the stream from the database and can load that directly?

On new drag and drop item to target listview, (if this is the most appropriate control) it will appear as the associated extensions icon ie Adobe PDF icon, and it will utilise LINQ and stream this to a new database entry.

As I indicated earlier, I can see lots of asp examples, but nothing that really shows me the best way to go about this, I know there are probbaly many, but would like some direction to what would be considered best to achieve this outcome.

so is listview the right control to facilitate all this functionality ?
what does the LINQ code look like to accept a binary file dropped onto a drag and drop target, and insert to the SQL database?
what does LINQ code look like to retrieve the binary items from the SQL database to show them as associated icons in the listview?
What does the code look like to read this grabbed stream from the SQL database and open this stream directly to the associated application?

I would appreciate any direction/help to guide.

Thank you for reading!

Cheers

Viewing all articles
Browse latest Browse all 27230

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>