Does DB2 OS / 390 BLOB Support .docx File

May 13, 2010

ASP.net app inserts Microsoft Windows 2007 .docx file into a row on DB2 OS/390 Blob table. A different VB.net app gets the DB2 OS/390 Blob data. VB.net app kicks off Microsoft Word to open the .docx file but then Microsoft Word pops up a message that the data is corrupted. Word will allow you to fix the data so the file can be viewed but it is extra steps and users complain.I've seen some examples where .docx can be converted to .doc but they only talk about stripping out the text. Some of our .docx have pictures in them.

View 1 Replies


ADVERTISEMENT

Open A Docx File From A Bytestream - File Corruption Error

Feb 10, 2010

we consistently get a file corrupted error message when opening a docx file from a saved bytestream, evry other file type works just ok

Below is code from a sample form that replciate the issue

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Objective is to be able to copy a file to a bytestream then create a new document from that stream and then opne it.

[Code].....

View 1 Replies

OpenXML Format - Converting Docx To Doc File?

May 22, 2012

I've successfully implemented OpenXML that takes the bookmarks within a document and replaces them. Unfortunately it only works with .docx and from what I understand .doc is not compatible with the OpenXML format. So, what I'm wondering is if I can take that WordprocessingDocument and convert it to a .doc when users try and download it.

View 2 Replies

Read A Word.Docx File Into A Richtextbox?

Apr 12, 2010

I am not sure if this is a dumb question or not? Is there a way that we can read a .docx file and put it into a richtextbox? If so how? I have tried.LoadFile and it throws an exception saying invalid format? I tried reading the file from a stream and that also doesn't work?

View 2 Replies

VS 2008 - How To Search For Text (100 Docx File)

Jul 21, 2011

I have a folder containing about 100 word documents (.docx format)... I want to make a search application for them. How to read a document using the openxml method... but my query is how to search for text, shall I load each one and carry out the search in the textbox?

View 1 Replies

Write A Blob File To MySQL?

Mar 17, 2009

I am recieving an error when I am trying to write a blob file to MySQL. figure out what I am doing wrong. Here is my code:

[Code]...

View 14 Replies

How To Insert 9 MB Audio File Into Blob Field

May 14, 2010

Trying to insert a large audio file into an Oracle 10g database and keep getting this error:
ORA-01460: unimplemented or unreasonable conversion requested
The byte array length of the audio file is 2702577. The procedure works with smaller array lengths, but not the larger ones.

Here is my code:
Dim oracleConnection As New OracleClient.OracleConnection
Dim Cmd As New OracleClient.OracleCommand
Dim oracleDataAdapter As New OracleDataAdapter
oracleConnection.ConnectionString = System.Configuration.ConfigurationManager.AppSettings("MasterConnectionODT")
[Code] .....

View 1 Replies

Can Itext Generate Pdf File And Insert Into Database As Blob

Jan 12, 2011

I just wondering can Itext done the following function before i dive into it.I want to develop a window application, and schedule this application in my server. This application should query the data from (oracle) and with itext help (i hope it help), generate pdf report. Then insert back to oracle as blob.

View 2 Replies

InvalidCastException When Reading A BLOB Object (PDF File) From An SQL Database?

Nov 3, 2011

I'm having problems with an Invalid Cast Exception when I try and read a PDF from a database as a BLOB. I am able to write the files into the database no problems at all,however, when I try to retrieve them I just get InvalidCastException.Here is the code I'm using:

Protected Sub btnPDF_Click(sender As Object, e As EventArgs) Handles btnPDF.Click
' Request.QueryString["docid"].ToString();
Dim docuid As String = "b39a443d-ccfd-47f4-b333-f12cd94683d6"

[code].....

View 1 Replies

Retrieve MySQL Blob - Save The File To Disk

Aug 29, 2010

I have a mySQL table(IMP_SCANS) holding the file, it's name and size for every document:

scan_1 blob
description varchar
filesize int
doc_no varchar
doc_date date

I managed to insert a file to the table. Now I need to save the file to disk.

So I have the code:

Dim conn As New MySqlConnection
Dim cmd As New MySqlCommand
Dim myData As MySqlDataReader
Dim SQL As String
Dim FileSize As UInt32
Dim fs As FileStream

[CODE]............

I all works fine up to the line: myData.GetBytes(myData.GetOrdinal("scan_1"), 0, rawData, 0, filesize) Where it says "Object reference not set to an instance of an object". I cannot figure out why I receive this error.

View 5 Replies

Zipping File Stored On SQL Server As Blob Image Field

Jul 14, 2010

I'm trying to zip a file that is stored on SQL Server as a blob image field and when downloading the zip file it says the file is corrupted.. or the file will open but contains some crazy characters. I've tried WinRAR and 7zip and no luck. I checked out [URL] and tried to kind of combine the browser attachment code and the memorystream/byte array code and no luck.

Here is my code snippet:
Try
BinData = DirectCast(dt.Rows(0)("ImageField"), Byte())
Catch ex As Exception
End Try
Dim blen As Integer = BinData.Length
[Code] .....

View 12 Replies

Odbc - Reading A Large File (>5MB) From A BLOB (container) Field From Filemaker?

May 4, 2011

I'm trying to read a binary file from a FileMaker 11 container field using Filemaker's own ODBC driver. I was able to write files to the database and this works fine. retrieving them manually works fine and the files look OK and are not corupted. However when retreiving them using VB.NET, and if the file size is approx > 5MB, I get the following "uncatchable" error (yes thats right, I cant "Try Catch End Try", it just crashes):

System.AccessViolationException was unhandled
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

[code].....

View 1 Replies

If Compile A VB6 App On Win7 - ADODB.Connection Errors With "Class Does Not Support Automation Or Does Not Support Expected Interface"

Apr 28, 2011

I compiled some VB6 code on my Win7 x64 machine and the result .exe will not run correctly on any other machine. VB6 code is just a new template .exe file with one button, a reference to "Microsoft ActiveX Data Objects 2.6 Library" and the following code in the button press event: Dim db Set db = New ADODB.Connection It runs correctly on my machine, but no others (even other Win7 x64 machines) (Update: I found TWO other users where it runs and one of them is Jeff Atwood!, but most machines have the same problem)

[Code]...

View 2 Replies

'The File Does Not Support Refactoring Error

Oct 13, 2010

When I try to change the root namespace of my WPF VB.Net application, I get this error:
'The file "" does not support refactoring and will have to be manually changed. Object reference not set to an instance of an object'

[Code]...

View 5 Replies

File Wipe & Drag-n-drop Support?

Jun 6, 2011

Two questions: how can I completely wipe a file from disk with vb.net? I found a code in C#, converted it to VB.net online but didn't understand a letter. I was thinking on a wiper like CCleaner has, but for a selected files only.

And, how can I manage drag-n-drop functions? Like... drag something into my form (or my app's exe) and do something with it?

View 6 Replies

Convert DOCX To XML?

Dec 5, 2011

I have a WORD document I open programmatically and extract the data from to a string variable. I understand that the X in the DOCX stands for XML. Is there a way to convert my WORD document to an XML type value so that i can then save the information in an XML formatThe output can be a string with XML tags in it or if anyone feels generous and has the code: create a new XML file with everything in itHere is the code i need to upgrade:

Code:
Function ExtractDocText(ByVal strDocPath As String) As String
Dim oApp As Word.Application

[code]......

View 6 Replies

Open Doc Or Docx?

Jun 3, 2010

I have made a program that opens some word documents but before I release it I want to make sure it opens both .doc and docx. I was assuming this would work:

report.documents.open(Reportpath & "Report.doc*") To no avail I ended in a com error (Hresult).

I must be wrong you cannot put a wildcard in with a string?

View 3 Replies

Convert Doc To Docx Using Open Xml Sdk In C#?

Jun 27, 2011

convert .doc file to .docx using open xml sdk or any other method except word automation.

View 2 Replies

How To Save Dialog With Docx Ext

Jul 25, 2011

i have various controls outputting to a word document e.g text box and rich text box and so on. What my problem is it works fine if i use the doc ext but when i change it to docx ext, when i open the document ( after it has saved to my desktop) it says there is a problem. This code works fine with doc ext just not docx so i am wonder is it something i am doing wrong or does the save dialog box not support docx ext. here is the code i am using to save to the word document.[code...]

View 14 Replies

VS 2010 Take .doc & .docx Text

Mar 11, 2012

'm doing a project that need me to browse a .doc and .docx file and put the text inside into textbox / maybe richtextbox

View 9 Replies

VS 2010 Take .doc & .docx Text?

Apr 18, 2012

I'm doing a project that need me to browse a .doc and .docx file and put the text inside into textbox / maybe richtextbox

View 4 Replies

Asp.net Vb - Docx Corruption On Email Receiving?

Feb 12, 2012

Im trying to send a Docx file via this form that I made, the email sends fine.but the docx file gets back corrupted.. this is my backgroudn code:

'Add the namespace for the email-related classes
Imports System.Net.Mail
Partial Class SendAttachment
Inherits System.Web.UI.Page

[code]....

View 1 Replies

Copy Full Pages From Docx To Another?

Oct 12, 2009

How can I do a full page selection with VB 2008 express of a docx?I'm using the reference of the Microsoft Object Library 12.0 I can make selections, and copy & paste it between different files, but I don't know if it's possible to select a page, like a page. In a "speaking-languaje or pseudo-code" i want to do this : "Copy the first one page of the document a.docx and paste it on final_doc.docx,copy the two first ones pages of b.docx and paste it on final_doc.docx"

View 3 Replies

How To Get Blob Into PictureBox

Jul 18, 2012

I'm already using ORacle 11G. The problem is when I'm using System.Data.Oracleclient to pull blob into picturebox it's ok, but when i'm using OracleDataaccess.Client / Types.....there no image appear n comeout error " Parameter is not valid" in this coding :-
Dim bmp As Bitmap = Image.FromStream(ms)

View 7 Replies

Good Free / Payed .doc AND .docx Editor For .NET?

Feb 17, 2011

Does anyone know of a good free/payed .doc AND .docx editor for .NET? I've had a look in various places, but nothing seems to support the docx file format.Does anyone know of any controls or components which will let me view or edit .docx and .doc files in a VB.NET app?

View 4 Replies

MSWord Special Characters When Viewing .docx As .txt

May 1, 2012

I am writing an encryption program to become more familiar with MVB (2010). What it does is take each character in a file, convert it into ASCII, perform calculations on the ASCII value and then write to a file. (I change the extension from .docx to .txt, encrypt, decrypt, change extension from .txt to .docx)

The issue that I get is when taking the file from the encrypted state to the original. When I look at the before and after .txt values, they do not match up (I have tested the program on standard text with no issues). After doing a little looking, it seems that the special characters that show up when converting .docx to .txt are not all ASCII characters. Does anyone know anything about this, where to find information about the characters, or anything else?

View 2 Replies

Remove Empty Paragraphs From .docx Using OpenXML SDK 2.0

Nov 11, 2011

I'm trying to remove empty paragraphs from a .docx file before parsing the content into xml. How would I achieve this?

[Code]...

View 1 Replies

VS 2010 Reading Text From Pdf And Doc/docx Files?

Jul 14, 2011

I use VS 2010 under Windows 7, and I need to extract text that is currently stored in pdf and doc/docx files. Using .NET 4, how can I do this?

View 1 Replies

How To Declare A Blob Field

Sep 19, 2011

How can I declare a blob field in an access database with SQL?

View 1 Replies

Save BLOB To Mysql?

May 13, 2011

Saving BLOB to mysql database using VB.net windows base application

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved