473,608 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Uploading big files

Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right now
the ASP.Net UploadFile control can't do it as we are limited 1) by the
MaxRequestLengt h (4Mb) and 2) with big files (such as 250Mb) the server
crashes because it only uses memory to cache the upload...

Is there an easy way to develop an HTTP Module to handle the upload (links,
tutorials, ...)? I've seen components to do this on the net, but they are
too expensive for what we need to do and the budget we have (near 0.00$)...
I know we could use FTP (there are plenty of free server softwares out
there), but we could not use all the other features an asp.net has to offer
such as the ease of use and data binding and everything... right now I
would like to be able to put these files into a database, which is possible
with the FileUpload control, but because of the "big files" requirement, I
just can't use it...

Anybody have ideas?

Thanks

ThunderMusic
Sep 26 '06 #1
8 1301
The MaxRequestLengt h limit can be changed in the web.config file.

<configuratio n>
<system.web>
<httpRuntime maxRequestLengt h="40960" />
</system.web>
</configuration>

Please see this document:
http://msdn.microsoft.com/library/de...imeSection.asp

"ThunderMus ic" <No************ *************@N oSpAm.comwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right now
the ASP.Net UploadFile control can't do it as we are limited 1) by the
MaxRequestLengt h (4Mb) and 2) with big files (such as 250Mb) the server
crashes because it only uses memory to cache the upload...

Is there an easy way to develop an HTTP Module to handle the upload
(links, tutorials, ...)? I've seen components to do this on the net, but
they are too expensive for what we need to do and the budget we have (near
0.00$)... I know we could use FTP (there are plenty of free server
softwares out there), but we could not use all the other features an
asp.net has to offer such as the ease of use and data binding and
everything... right now I would like to be able to put these files into a
database, which is possible with the FileUpload control, but because of
the "big files" requirement, I just can't use it...

Anybody have ideas?

Thanks

ThunderMusic

Sep 26 '06 #2
I know this part... We changed it, but there are 2 problems with this 1) it
opens the server for Denial Of Service attacks and 2)even if I put it to 2Gb
and upload a file of 200Mb, the server crashes because the FileUpload
control caches the request entirely in memory...

Thanks

ThunderMusic
"Gabriele G. Ponti" <ggponti.at.hot mail.comwrote in message
news:O2******** ******@TK2MSFTN GP05.phx.gbl...
The MaxRequestLengt h limit can be changed in the web.config file.

<configuratio n>
<system.web>
<httpRuntime maxRequestLengt h="40960" />
</system.web>
</configuration>

Please see this document:
http://msdn.microsoft.com/library/de...imeSection.asp

"ThunderMus ic" <No************ *************@N oSpAm.comwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
>Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right now
the ASP.Net UploadFile control can't do it as we are limited 1) by the
MaxRequestLeng th (4Mb) and 2) with big files (such as 250Mb) the server
crashes because it only uses memory to cache the upload...

Is there an easy way to develop an HTTP Module to handle the upload
(links, tutorials, ...)? I've seen components to do this on the net, but
they are too expensive for what we need to do and the budget we have
(near 0.00$)... I know we could use FTP (there are plenty of free server
softwares out there), but we could not use all the other features an
asp.net has to offer such as the ease of use and data binding and
everything.. . right now I would like to be able to put these files into
a database, which is possible with the FileUpload control, but because of
the "big files" requirement, I just can't use it...

Anybody have ideas?

Thanks

ThunderMusic


Sep 26 '06 #3
I know you said your budget was $0 but I use a component called aspupload
that works great. I think the single server license is $150.00.
"ThunderMus ic" <No************ *************@N oSpAm.comwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right now
the ASP.Net UploadFile control can't do it as we are limited 1) by the
MaxRequestLengt h (4Mb) and 2) with big files (such as 250Mb) the server
crashes because it only uses memory to cache the upload...

Is there an easy way to develop an HTTP Module to handle the upload
(links, tutorials, ...)? I've seen components to do this on the net, but
they are too expensive for what we need to do and the budget we have (near
0.00$)... I know we could use FTP (there are plenty of free server
softwares out there), but we could not use all the other features an
asp.net has to offer such as the ease of use and data binding and
everything... right now I would like to be able to put these files into a
database, which is possible with the FileUpload control, but because of
the "big files" requirement, I just can't use it...

Anybody have ideas?

Thanks

ThunderMusic

Sep 26 '06 #4
it could be interesting... I'll look for it on google... (or maybe you have
to link to the home page og the publisher?)

I'm currently trying a free solution that is under the LGPL called :
NeatUpload... I found it a little before noon (Eastern time USA) I'll see if
it does the job... if it does, I'll use it, if it doesn't, I'll look for
your aspupload... ;)

thanks a lot...

ThunderMusic
"Brian P. Hammer" <Br*********@co mmunity.nospamw rote in message
news:Om******** ******@TK2MSFTN GP03.phx.gbl...
>I know you said your budget was $0 but I use a component called aspupload
that works great. I think the single server license is $150.00.
"ThunderMus ic" <No************ *************@N oSpAm.comwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
>Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right now
the ASP.Net UploadFile control can't do it as we are limited 1) by the
MaxRequestLeng th (4Mb) and 2) with big files (such as 250Mb) the server
crashes because it only uses memory to cache the upload...

Is there an easy way to develop an HTTP Module to handle the upload
(links, tutorials, ...)? I've seen components to do this on the net, but
they are too expensive for what we need to do and the budget we have
(near 0.00$)... I know we could use FTP (there are plenty of free server
softwares out there), but we could not use all the other features an
asp.net has to offer such as the ease of use and data binding and
everything.. . right now I would like to be able to put these files into
a database, which is possible with the FileUpload control, but because of
the "big files" requirement, I just can't use it...

Anybody have ideas?

Thanks

ThunderMusic


Sep 26 '06 #5
http://www.aspupload.com/ is the site. I think their main site is at
http://www.persits.com/

HTH,
Brian

"ThunderMus ic" <No************ *************@N oSpAm.comwrote in message
news:%2******** *********@TK2MS FTNGP02.phx.gbl ...
it could be interesting... I'll look for it on google... (or maybe you
have to link to the home page og the publisher?)

I'm currently trying a free solution that is under the LGPL called :
NeatUpload... I found it a little before noon (Eastern time USA) I'll see
if it does the job... if it does, I'll use it, if it doesn't, I'll look
for your aspupload... ;)

thanks a lot...

ThunderMusic
"Brian P. Hammer" <Br*********@co mmunity.nospamw rote in message
news:Om******** ******@TK2MSFTN GP03.phx.gbl...
>>I know you said your budget was $0 but I use a component called aspupload
that works great. I think the single server license is $150.00.
"ThunderMusi c" <No************ *************@N oSpAm.comwrote in message
news:%2******* ********@TK2MSF TNGP06.phx.gbl. ..
>>Hi,
I'm currently building a little web site for me and my friends where we
would like to be able to post big files (10Mb to 250Mb approx.) Right
now the ASP.Net UploadFile control can't do it as we are limited 1) by
the MaxRequestLengt h (4Mb) and 2) with big files (such as 250Mb) the
server crashes because it only uses memory to cache the upload...

Is there an easy way to develop an HTTP Module to handle the upload
(links, tutorials, ...)? I've seen components to do this on the net, but
they are too expensive for what we need to do and the budget we have
(near 0.00$)... I know we could use FTP (there are plenty of free server
softwares out there), but we could not use all the other features an
asp.net has to offer such as the ease of use and data binding and
everything. .. right now I would like to be able to put these files into
a database, which is possible with the FileUpload control, but because
of the "big files" requirement, I just can't use it...

Anybody have ideas?

Thanks

ThunderMusi c



Sep 26 '06 #6
I was working on a component to allow a "multi-post upload"; I had to
set it down for the moment in order to take care of more urgent work,
but I intend to get back on it next week.

It is a fairly simple server side script but it does require a client
side component that I currently have coded as a VB Application and
needs to be recoded as a downloadable .net component (it would be even
if this was a java applet, for cross browser compatability)

It was working, and the basic design is in place, but it could use some
code review and exception handling. It is pretty simple and should
allow for arbitrary small posts, and abitrarly large uploads, limitted
only by disk availability.

If anyone uses this, or improves it, please let me know so I can
benefit from the code review.

Basic concept:
1. client creates a connection and gets a hash from server
2. client reads file and post "postSize" bytes - server side opens file
associated with hash, seek() to offset sent by client and writes the
data sent. -repeat
3. client sends a completed signal.

There could be some optimization if you kept the file open between
posts, but that brings up the

The files are:
gigaUploadClien t.vb - a class that implements the client
UploadServlet.a spx
UploadServlet.a spx.vb - implements the server side storage
uploadTester.vb - The code behind a form demonstrating how to use the
client.

uploadTester.vb :
Public Class uploadTester

Private _uploader As gigaUploadClien t

Private Sub btnSend_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnSend.Click
btnSend.Enabled = False
Dim postSize As Integer
If Not Integer.TryPars e(txtPostSizeKB .Text, postSize) Then
MessageBox.Show ("<" + txtPostSizeKB.T ext + "is not a
valid integer!")
Return
End If
_uploader = New gigaUploadClien t(txtFile.Text, txtUrl.Text,
postSize)
Dim upldThrd As New Threading.Threa d(AddressOf
_uploader.SendF ile)
upldThrd.Start( )
End Sub

Private Sub btnUpdate_Click (ByVal sender As System.Object, ByVal e
As System.EventArg s) Handles btnUpdate.Click
lblProgress.Tex t = _uploader.GetPr ogress + " : " +
Math.Round(_upl oader.GetProgre ssFraction * 100).ToString + "%"
btnSend.Enabled = Not _uploader.IsRun ning()
End Sub
End Class

*************** *************** *************** *************** *************** *************** **
UploadServlet.a spx:
<%@ Page Language="VB" AutoEventWireup ="false"
CodeFile="Uploa dServlet.aspx.v b" Inherits="_Uplo adServlet" %>

*************** *************** *************** *************** *************** *************** **
Imports System
Imports System.IO

Partial Class _UploadServlet
Inherits System.Web.UI.P age
Private savePath As String
Private Const readBlockSize As Integer = 10240

Public Sub New()
Dim settings As Configuration.A ppSettingsReade r = New
Configuration.A ppSettingsReade r()
Try
savePath = settings.GetVal ue("savePath", GetType(String) )
Catch
savePath = "c:\temp\upload er"
End Try
Try
If Not Directory.Exist s(savePath) Then
Directory.Creat eDirectory(save Path)
End If
Catch ex As Exception

End Try
End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
ProcessUploadRe quest()
End Sub

Private Sub restartUpload(B yVal fpath As String)
'/* Find the seek position */
Dim seekPos As Long = 0
Try
seekPos = Long.Parse(Requ est("offset"))
Catch nex As Exception
Response.Write( "-1")
Return
End Try

Dim fout As FileStream
If seekPos 0 Then
'* Open a RandomAccessFil e so that we can seek on it.
fout = File.Create(fpa th, FileMode.OpenOr Create,
FileOptions.Ran domAccess)
'this seek call takes significant time when the file is
big, so only do
'it if we get a seekposition which suggest a resume upload
fout.Seek(seekP os, IO.SeekOrigin.B egin)
'truncate the file to the restart position
fout.Close()
Response.Output .Write(seekPos. ToString)
Return
Else
Response.Write( "-1")
Return
End If
End Sub

Private Sub SpoolFile(ByVal fpath As String)

Dim instr As Stream = Request.InputSt ream

If (Not Directory.Exist s(Path.GetDirec toryName(fpath) )) Then
Try
Directory.Creat eDirectory(Path .GetDirectoryNa me(fpath))
Catch ex As Exception
End Try
End If

Dim fout As FileStream
If (File.Exists(fp ath)) Then
fout = File.OpenWrite( fpath)
fout.Seek(0, SeekOrigin.End)
Else
fout = File.Create(fpa th, FileMode.Create New)
End If
Dim b(readBlockSize ) As Byte
Dim i As Integer

Do
i = Request.InputSt ream.Read(b, 0, readBlockSize)
fout.Write(b, 0, i)
Diagnostics.Deb ug.Print(Text.E ncoding.ASCII.G etString(b, 0,
i))
Loop While (i = readBlockSize)
'Response.Write (fout.Length)
fout.Close()

End Sub

Public Sub ProcessUploadRe quest()
Try
Response.Conten tType = "text/html;charset=UT F-8"

Dim hash As String = Request("hash")
Dim cmd As String = Request("cmd")
Dim fname As String = Request("fname" )
If "".Equals(fname ) Or fname Is Nothing Then fname =
"downloadfile.d at"

Diagnostics.Deb ug.Print("cmd ::" + cmd)
Diagnostics.Deb ug.Print("fname ::" + fname)

If hash Is Nothing Then hash = "0" +
Guid.NewGuid(). ToString + "1"
If ("").Equals(has h) Then hash = "0" +
Guid.NewGuid(). ToString + "1"
Dim fpath As String = Path.Combine(Pa th.Combine(save Path,
hash), fname)

Diagnostics.Deb ug.Print("hash ::" + hash)

Select Case cmd

Case "getconnect ion"
Response.Output .Write(hash)
Response.Output .Close()
Return

Case "getstatus"
'this is and extra step for the current
configuration
'but it is useful if we want to implement a resume
upload.
'this is not currently implemented.
Diagnostics.Deb ug.Print("writi ng file to " + fpath)

If (File.Exists(fp ath)) Then
'* The file exists on the server. A previous
upload has failed.
'* report back how many bytes have been written
Response.Output .Write(New
FileInfo(fpath) .Length())
Else
'* report back that zero bytes have been
written
Response.Output .Write("0")
Response.Output .Close()
End If

Case "completeupload "
' this is where we could do any clean up or file
moving that we want

Response.Output .Write("Success . Bytes written: " +
FileLen(fpath). ToString)
Return

Case "restart"
restartUpload(f path)
Response.Output .Close()
Return
Case "spoolfile"
'this is the case of spooling the file
If (hash Is Nothing) Then
Response.Output .Write("null hash, null cmd is
not valid")
End If
SpoolFile(fpath )
Response.Output .Close()
Return
End Select

Catch e As Exception
Response.Output .Write("failed" )
Response.Output .Write(e.Messag e)
Diagnostics.Deb ug.Print(e.Mess age)
End Try
End Sub
End Class
*************** *************** *************** *************** *************** *************** *****

Imports System
Imports System.IO
Imports System.Net

Public Class gigaUploadClien t
Private _cli As WebClient
Private _hash As String
Private _fileSize As Long
Private _reader As IO.Stream
Private _uploadUrl As String
Private _sourceFile As String
Private _postSize As Long
Private _curPos As Long = 0
Private _lockObj As New Object
Private _isRunning As Boolean = False

Public Sub New(ByVal sourceFile As String, ByVal uploadUrl As
String, ByVal postSize As Integer)
_uploadUrl = uploadUrl
_sourceFile = sourceFile
_postSize = postSize
End Sub
Public Sub SendFile()
_isRunning = True
_cli = New WebClient()

_cli.QueryStrin g.Add("cmd", "getconnection" )
'cli.QueryStrin g.Add("hash", "")
_hash = _cli.DownloadSt ring(_uploadUrl )

'begin hack
'trim off any whitespace. think this was because I used a
WriteLine() on the servlet. duh!
_hash.TrimEnd(C onstants.vbCrLf .ToCharArray)
If _hash.EndsWith( Constants.vbCrL f) Then
_hash = _hash.Substring (0, _hash.Length - 2)
End If
'end hack

Dim fileOffset As Long = getStatus()
If fileOffset 0 Then
restartTransfer (fileOffset)
End If
spoolFile()
_isRunning = False
End Sub

Private Function getStatus() As Long
_cli.QueryStrin g.Clear()
_cli.QueryStrin g.Add("cmd", "getstatus" )
_cli.QueryStrin g.Add("hash", _hash)
_cli.QueryStrin g.Add("fname", Path.GetFileNam e(_sourceFile))

Dim fileOffsetStr As String = _cli.DownloadSt ring(_uploadUrl )
Dim fileOffset As Long
If Long.TryParse(f ileOffsetStr, fileOffset) Then
Return fileOffset
Else
Return 0
End If
End Function

Private Sub restartTransfer (ByVal offset As Long)
_cli.QueryStrin g.Clear()
_cli.QueryStrin g.Add("cmd", "restart")
_cli.QueryStrin g.Add("hash", _hash)
_cli.QueryStrin g.Add("fname", Path.GetFileNam e(_sourceFile))

Dim fileOffsetStr As String = _cli.DownloadSt ring(_uploadUrl )
SyncLock _lockObj
_curPos = offset
End SyncLock
End Sub

Private Sub confirmFileFini shed()
_cli.QueryStrin g.Clear()
_cli.QueryStrin g.Add("cmd", "completeupload ")
_cli.QueryStrin g.Add("fname", Path.GetFileNam e(_sourceFile))
_cli.QueryStrin g.Add("hash", _hash)
Dim resp As String = _cli.DownloadSt ring(_uploadUrl )
End Sub

Private Sub spoolFile()
Dim out As IO.Stream
_fileSize = FileLen(_source File)

Const readBufferSize As Integer = 4096
Dim b(readBufferSiz e) As Byte
Dim postSize As Integer = _postSize * 1024
Dim i As Integer
Dim bytesSpooled As Long = 0

_reader = File.OpenRead(_ sourceFile)
If _curPos 0 Then
_reader.Seek(_c urPos, SeekOrigin.Begi n)
End If

Do
_cli.QueryStrin g.Clear()
_cli.QueryStrin g.Add("cmd", "spoolfile" )
_cli.QueryStrin g.Add("hash", _hash)
_cli.QueryStrin g.Add("fname",
Path.GetFileNam e(_sourceFile))
_cli.Headers.Ad d("Content-Type",
"applicatio n/octet-stream")
'don't write offset unless we need to resume an upload
'cli.QueryStrin g.Add("offset", curPos.ToString )
out = _cli.OpenWrite( _uploadUrl)
Dim bytesSpooledThi sPost As Integer = 0
Do
i = _reader.Read(b, 0, readBufferSize)
out.Write(b, 0, i)
bytesSpooledThi sPost += i
bytesSpooled += i
SyncLock _lockObj
_curPos = bytesSpooled
End SyncLock
Loop While (i = readBufferSize And bytesSpooledThi sPost <
postSize)
out.Close()
Loop While (i = readBufferSize) ' i will be less then
readBufferSize when we reach the end of the file
End Sub

Public Function GetProgressFrac tion() As Double
SyncLock _lockObj
Return _curPos / _fileSize
End SyncLock
End Function

Public Function GetProgress() As String
SyncLock _lockObj
Return Math.Round(_cur Pos / 1024).ToString + "kb of " +
Math.Round(_fil eSize / 1024).ToString + "kb transfered"
End SyncLock
End Function

Public Function IsRunning() As Boolean
Return _isRunning
End Function
End Class

Sep 27 '06 #7
Ok, piss-poor editing on that last post.
If anyone wants the files, let me know, and I can email them.

Sep 27 '06 #8
Please pass them along... bhammer at leas dot com

Thanks,
Brian

"mcrose" <ma*********@gm ail.comwrote in message
news:11******** *************@d 34g2000cwd.goog legroups.com...
Ok, piss-poor editing on that last post.
If anyone wants the files, let me know, and I can email them.

Sep 27 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2769
by: dickiedyce | last post by:
Hi there. I've spent the weekend getting ever more frustrated, trying to get an upload file function working on a website. The site is hosted by a company called oneandone. They're using PHP 4.2. 3, not in safe mode. I think that the basic problem is the set-up for the temp folder, but I don't have access to the .ini settings. I'm pretty sure it's possible, because I've got MyPHPAdmin running, and
5
7826
by: Kevin Ollivier | last post by:
Hi all, I've come across a problem that has me stumped, and I thought I'd send a message to the gurus to see if this makes sense to anyone else. =) Basically, I'm trying to upload a series of files via FTP. I'm using ftplib to do it, and for each file I'm using transfercmd("STOR " + myfile) to get the socket, then uploading 4096 bytes at a time and providing status updates via a GUI interface. Finally, I close the socket, set it to...
5
5459
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and replacing it with a button of my own background color and text. The file paths I'd like displayed in a textarea and then the files uploaded at once.
13
4295
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
0
2200
by: Raj | last post by:
Hello, I am planning to provide the Pause/Resume while uploading files. Our site is using both java applet and activex to do this. The list of selected files will be stored in an encrypted file using SHA256 (I have taken the code from: http://www.vbforums.com/showthread.php?s=&threadid=232284)
221
367314
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application needs to store entire files, the preferred method is to save the file onto the server’s file-system, and store the physical location of the file in your database. This is generally considered to be the easiest and fastest way to store files. ...
2
2327
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
jodleren escribió: I haven't found the PHP manual page where such feature is documented but a few tests have shown that this behaviour changes depending on the charset parameter of the "Content-Type" HTTP header; even if I don't set an actual HTTP header and I just use a <metatag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> With a packet sniffer I've determined that it's not the browser who
1
726
by: =?Utf-8?B?RGFu?= | last post by:
MS won't seem to let me reply to my old post, so I created a new one. The error occurs in all browsers. It's definitely a server issue, not client. The server is not proxied in any way. I tried uploading the files on the server and experienced the same issues as I get on any other computer. Thanks in advance for your help. Dan
3
5169
by: muziburrehaman | last post by:
i am looking for code in php to upload the 1 gb files. any one can please help me by sending the code....
0
2735
by: LoriFranklin | last post by:
I'm a bit of a newbie here. I've learned a lot from reading the posts you all have here. I need some help uploading files using an asp form. I am using some code that I found from Jacob at asp101.com. http://www.asp101.com/articles/jacob/scriptupload.asp My three files are: Syllabus.htm <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
8069
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8011
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8503
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8488
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8358
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5482
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3972
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2479
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1339
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.