Asp.net - Chrome Saving Streamed File As .gz
Oct 30, 2009
I have files stored encrypted on disk in an unnamed, unordered state. when the files are downloaded by the user, the client is redirected to a download handlers (.ashx) the data is loaded into a stream, decrypted and sent to the client. Now this has worked fine until recently,
It works fine on all browsers except chrome where the file is downloaded as a .gz file and is unreadable?
I have stripped out the stream fetching and cryptography parts for brevity (keep in mind this works perfectly on IE, Firefox etc)
Private Function StreamFile(ByVal context As System.Web.HttpContext) As Boolean
context.Response.Clear()
context.Response.ClearHeaders()
[Code]....
Note that the filename is codekiwi.txt and the contents are some simple plain text, the file gets saved as codekiwi.txt.gz and contains gibberish.
View 1 Replies
ADVERTISEMENT
Oct 20, 2010
here is what I'm trying to do (partly in pseudo code):
Public Sub KillProcess(ByRef strProcessToKill As String)
Dim proc() As Process = Process.GetProcesses
For i As Integer = 0 To proc.GetUpperBound(0)
If proc(i).ProcessName = strProcessToKill Then
proc(i).Kill()
End If
[Code]...
The killprocess part works fine. However, if I try a "For Each App As Process In Process.GetProcessesByName("chrome"") approach and have several chrome windows open then it will display the question 5 times if there are 5 chrome processes open.
View 4 Replies
Mar 11, 2010
I would like to add a virtual microphone (similar to how you can have a virual CD drive and then mount ISO files on it.) so that it can be selectable in programs like MSN and skype. But have the source of the audio be streamed from over a network(I know how to stream the audio over the network in VB.net) but how do I get that audio which has been streamed as the input to the virtual microphone?
View 3 Replies
Feb 12, 2012
Currently I am saving data from my applications by saving a text file via a stream reader as a string. I have come to a problem. In my current application, I have an array of the following structure:
[Code]...
View 7 Replies
Jul 14, 2011
I want to get the all URLs of any open browser using vb.net desktop application...[URL]
View 5 Replies
Apr 6, 2012
I'm using vb.net. How can i import bookmarks from Google Chrome?
View 3 Replies
May 3, 2012
I'm newbie and learn in vb.net 2010
i ve plan to create simple browser using vb.net[code]...
View 1 Replies
Feb 11, 2012
Is there any way to embed chrome inside .NET application?
At the moment I am using Internet Explorer in my VB applications[code]...
View 4 Replies
Mar 31, 2012
I want to get the address of the browsers open(IE and Chrome) and test if the address is in a block list, if yes the browser is redirected to Access denied.html page..
View 2 Replies
Jun 9, 2012
i want to make a program that will allow the user to enter the internet via my browser. However my browser will let him to choose what the browser he is using(my browser) should seem like (meaning seem like an ie/chrome/firefox etc).How do i do that ? What are the signatures that sites like this [URL]..
View 4 Replies
Nov 2, 2011
is it possible to use stored Chrome cookies in VB.NET?
I need to periodically check certain data on a webpage that requires login. I know I can login with Internet Explorer first and then later use the stored Internet Explorer cookie in my application to visit that webpage.
The problem is that I use Chrome to browse that website. When I first login with IE in order to check the data with my application and then browse the website manually with Chrome, the Chrome cookie is suddenly invalid. Then I need to login with Chrome, but then the IE cookie is suddenly invalid again and my application can't check the data anymore.
So, it's not possible to browse the website (logged in with Chrome) and periodically check the data in the background (logged in with IE) at the same time.
I really do not want to use IE to browse that website. The only way to make this work properly, is if I could use the stored Chrome cookie in my application, instead of the IE cookie.
View 3 Replies
Jan 15, 2010
I have .net code that works on IE8 but wont work on google chrome or firefox. i have put this code for the user to press Enter instead of clicking the mouse everytime. [Code]. How can i make this work on different browsers?
View 3 Replies
Apr 30, 2012
in my application, I pull in http code from the server side. When this code is placed into the application - the event will happen when clicked in IE, but not in any other browser. Heres the part of the code that deals with the image that is clicked and the event.
<img canExpand="true" style="cursor:hand" id="img34635" src="../images/plus.gif" EntityID="346" EntityCat="35" onclick="LoadChild(this.EntityID, this.EntityCat, 0, this.lnEquip)">
LoadChild is a javascript function on the client side of the page. When the image is clicked in anything other than IE , nothing happens. Can anyone see why this is happening? It may be a formatting issue.
edit - here is the javascript function load child
function LoadChild(lnEntityID, lnEntityCat, FullExpand, EquipID) {
document.getElementById('dropTypes').disabled = false;
document.getElementById('dropTypes').style.background = "white";
[code]....
View 2 Replies
Mar 16, 2012
my code is to handle the maxlength in the multiline textbox (textarea) so it works just like maxlength in the singleline text box , so I handled it onkeypress , but if I copy and paste , i want to substring the length to the maxlength from the clipboard , just to behave like the singleline textbox, the problem that the clipboard works only for the internet explorer but it doesn't work in other browsersso function in JScript.js.[code]
View 1 Replies
Apr 12, 2012
i need to use chrome browser on my second screen when i open my application i have added --kiosk to chrome shortcut on the desktop and would need to do this: proces.start (chrome.exe) but on my second screen is there any chance to do this?
View 3 Replies
Dec 27, 2011
Is there any way that i can use my own browser as the default one rather than crome or explorer?.
View 1 Replies
Apr 25, 2011
I have a several form elements that I am dynamically creating with javascript when a user changes a number value in a textbox, by filling the innerHTML of a div like so:
dfinnerhtml = dfinnerhtml + "<div class='field'> ";
dfinnerhtml = dfinnerhtml + "<textarea name='textbox1" + suffix + "' type='text' id='textbox1" + suffix + "' value='' rows='4' cols='20' class='field'></textarea> ";
dfinnerhtml = dfinnerhtml + "</div> ";
Then, in the aspx.vb code behind, when the user clicks the Save button, I run through a series of Requests to try and add the values that are in these form elements to a SQL string:
Dim DFTestValue1 As String DFTestValue1 = Request("textbox" & c.ToString)
where c is a loop counter to the # of textboxes created (the input value mentioned above that triggers the create) The problem here is that this code works in Internet Explorer but not in Firefox or Chrome. The Request() value returns null and nothing is saved. I hope I've explained this well enough.
View 2 Replies
May 25, 2011
Google Chrome has a handy feature where I can click a download link and drag it into a Windows Explorer window, and then drop. After dropping, Chrome then downloads the file and it appears where I dropped it.
I would like to be able to drop from Google Chrome into my application, but it seems it isn't so simple. I have a DataGridView called gridFiles, and the following code:
Private Sub gridFiles_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles gridFiles.DragDrop
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
[Code].....
EDIT: So it seems that with regular URLs, I do get the proper dragged-in UniformResourceLocator format. The behavior I am seeing occurs with the download links in Gmail. It probably happens elsewhere, but I am not sure. When a gmail attachment is dragged from Gmail into my application, I get a FileDrop.
Doing some more digging, it seems that Gmail is using the download_url attribute of the anchor tag. I have never heard of this before. Perhaps this is just an extra property they have added?
In any case, since my application will primarily be used with e-mail attachments, I need a way for the phantom FileDrop to work, as stated above. I am unable to use Spy++. It doesn't seem to show any messages when drops occur.
Edit #2: Here is more information on how Gmail utilizes drag/drop for files: [URL]
View 3 Replies
Jun 30, 2011
where Google Chrome history is stored? I would like to make a console application that runs on startup that empties the file. I doubt it is plain text, most likely xml, so I would like a few code snippets as I have never worked with xml before.
View 10 Replies
Aug 14, 2009
How do you create custom chrome for a windows form in vb.net using Visual Basic 2008 express? I want to basically scrap what they give and start fresh.
View 1 Replies
May 23, 2011
I have a .NET login page. It works properly in Internet Explorer 7, but i want to make it compatible with Chrome, Mozilla and Safari.
The login code behind is:
Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click
{..................
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "test", "login()", True)
........}
The ASPX page code is:
function login()
{
if(document.getElementById("ctl00_Sidebar_Contentplaceholder_Lo1_SaveFlag").value =="Y")
[code]....
This is not working. I tried to debug it, but in debug mode the cursor only steps through the code behind. I'm not able to enter the javascript login() function on the aspx page.
View 1 Replies
Dec 12, 2009
I am creating a shell for a FORTRAN application which reads a tab delimited text file.Because I am using Excel to manipulate data, is it possible to use the Excel Automation features to "save as" a tab delimited text file?The only method available seems to be a unicode text format, which does not work. Or is there another format that mimics tab delimited so that the FORTRAN application will read such a file without difficulty?
View 1 Replies
Mar 9, 2009
I have an asp page with vb.net code that will query a database and present the user with the number of records that exist that need to be exported along with a button to export them. After you push the export button, it will prompt for a location and filename. But after that, it will not refresh the page with the new counts that now exist. Or in this case update the count to zero for the button they clicked.
[Code]
So how can I tell the page to refresh with the new counts. It almost seems like I need to tell the process to wait until after the user has finished finding the location and saving the file but I don't want to add a generic threading.thread.sleep in, I want it to only wait until they are done and then refresh the page.
View 3 Replies
Sep 18, 2011
Currently the reports are saved as a html file called report1.html, id like to make the user enter a name for the HTML file upon clicking submit.
A little stuck on how to make the filename for the HTML file save to a input entered by the user.
I currently have:
Try
'Open new HTML file to be written
WriteHtml = New StreamWriter(Application.StartupPath & "ListHardware.html")
If Not (WriteHtml Is Nothing) Then ' Is the File Open
[Code].....
View 4 Replies
Sep 11, 2011
i have a xdocument.load(file) and after changing some values want to xdocument.save(file)
this save is not possible because file is in use ?
nattelip Private Sub savechfid_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles savechfid.Click
[Code]...
View 19 Replies
Apr 25, 2009
i just found a new error problem on my app.. i have a save button that saves text1. as the file name and text2. as the content.. i recently tried to save this file name on my app: HKEY_LOCAL_MACHINESoftwareC07ft5Y as a file name, and due to the in the file name, it made my app error and close without being able to save my file.. my question is, how to bring a msgbox saying "invalid characters in file name" instead of causing it to error and shut down. (just found out that registry entry is for SafeDisc-enabled products, although, i'm not fully sure..)
[Code]...
View 11 Replies
Aug 10, 2009
I'm trying to find out if it is possible to something and really need your help.
What i want to be able to do is have a RichTextBox on my form that i can enter my description into, then when i have finished i want to be able to save it to a memory stream as a .html file.
I then want to be able to read the source of the HTML file to amend the format of the description and then display it in a webpage?
View 1 Replies
Jun 9, 2011
Here is my current file
Public
Class Form1
Dim ScreenData(3, 4) As TextBox
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
FileOpen(1, CurDir() &
[Code]...
View 2 Replies
Apr 4, 2010
I've been working with Editing a jpg through Hex. I have the code to open the hex of a file, but I just need to know how to write the file so it is able to be viewed as the same jpg. Editing aside, I just need to know how to write the file. Here's the code I have so far.
[Code]...
View 4 Replies
Mar 8, 2010
I am working on a note taking application. I have got a treeview and a richtextbox. On the treeview note captions are organized in a hierarchy. When a tree node is clicked related note details are displayed in the richtextbox. I use an xml file to save and load the treeview state (including nodes, expand collapse state, image index etc). I want to include all the note details in this xml file as well. But I dont know how to save richtextformat into an xml file.
View 2 Replies